
June 25th, 2002, 08:23 AM
|
|
|
|
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291
Time spent in forums: < 1 sec
Reputation Power: 3
|
|
|
FYI :: Apache .htaccess on Win32
Not sure if this was common knowledge to everybody but me! After about 30 minutes of fighting with this I finally got .htaccess working on an XP box.
When building the .htpasswd file:
1. From a cmd prompt, place yourself in the apache bin dir
2. When passing htpasswd the dir of the password file to create, use a relative path
When building .htaccess:
1. after AuthUserFile the filename must be an absolute path using fwd slashes and short dir names.
ex) c:/progra~1/Apache~1/Apache/etc
In your httpd.conf file:
1. Change the AllowOverride from "None" to "All"
Hope that helps someone.
|