Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How-to: password-protect a file/directory in Apache using htaccess
#6

Hi all,

 

Just a note to cover a tricky issue some people might have..

 

I followed the above directions on my fc2, apache2 server and nothing happened..

 

So if you try this too and have a simmilar issue, try adding an AllowOverride AuthConfig section to your site... for example my virtualhost below:

 

 

<VirtualHost 202.168.47.66>

DocumentRoot "/var/www/foo"

ServerName www.foo.com.au

<Directory "/var/www/foo">

allow from all

Options +Indexes

AllowOverride AuthConfig

</Directory>

</VirtualHost>

 

 

the .htaccess is located in the /var/www/foo directory and the .htpasswd is one directory higher. Rembember to check your error_log for apache!

 

 

da!!as

Reply


Messages In This Thread
How-to: password-protect a file/directory in Apache using htaccess - by dallas - 2004-11-27, 01:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)