• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

Apache server password protection

Status
Not open for further replies.

Tain

Member
Odd question, but I can't seem to get .htaccess password protection for an IP-address-based Win32 Apache server to work. I've created the files, but still no pass needed. Any suggestions?
 
I believe you have to set override for the directories you want to allow .htaccess to work for. by default it doesn't work. you need to add it inside a <Directory> directive..

IIRC
 
I found the <directory> in httpd.conf, and added the .htaccess info into it, and it's protected now, though I can't login.

Still, it's a start.
 
just tell the directory directive to allow overrides, then put all of the login info in the .htaccess file. also you have to make sure you hash your included passwords to md5 (htpasswd)
 
Status
Not open for further replies.
Top Bottom