Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Editing .htaccess - Password Protection

edited January 2012 in Vanilla 2.0 - 2.8

Hey!
I want to create a Vanilla forum which is only available for a small group of people. My plan is, that others shouldn't be able to see the forum at all.
So I tried to modify the existing .htaccess with the following code:

AuthType Basic

AuthUserFile /html/forum/.passwd

AuthName "Protected"



order deny,allow

allow from all

require valid-user

In addition I created the .passwd file with:

user:encryptedpassword

When I now want to access the forum the correct form appears, but when I want to log in there's error 500.

It was the first time I tried to modify the .htaccess, I've never done that before. Is there a problem with Vanilla or the existing part of the .htaccess with my additions? Or it's just my fault cause of mistakes in the code above?

Hope you can help me!

Best Answer

  • Options
    x00x00 MVP
    Answer ✓

    This is not necessary. .htaccess is fairly unforgiving, so if you don't get the rules 100% right it can error.

    Check out the private community plugin.

    grep is your friend.

Answers

  • Options
    x00x00 MVP
    Answer ✓

    This is not necessary. .htaccess is fairly unforgiving, so if you don't get the rules 100% right it can error.

    Check out the private community plugin.

    grep is your friend.

Sign In or Register to comment.