Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting .htacess to work (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Fri Feb 25, 2011 7:06 pm    Post subject: Getting .htacess to work (SOLVED) Reply with quote

Hello everyone,

I am trying to get .htaccess to work. I have the .htaccess file in the directory I want protected but it isn't working. Here is the contents of my .htaccess file...

Code:
AuthType Basic
AuthName "SecretDirectory"
AuthUserFile /home/jason/.htpasswd

<Limit GET>
require valid-user
</Limit>


I am using apache 2.2.16. Anyone know how to get it working?


Last edited by JC99 on Fri Feb 25, 2011 7:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Fri Feb 25, 2011 7:15 pm    Post subject: Reply with quote

Never mind, I figured it out.

I just had to change a setting in /etc/apache2/modules.d/00_default_settings.conf.

I changed

Code:
AllowOverride None


to

Code:
AllowOverride All
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum