Forum Moderators: phranque
Now I'm working on a newly built Solaris 8 box with Apache 1.3.20. I didn't build it, but it all looks "in order." However, it seems to be ignoring anything in .htaccess. I'm trying to set up a password for a directory, and cgi-bin access. (An application we have is entirely cgi...no external files except some graphics and a style sheet) No errors, but I don't really expect any, it's simply ignoring .htaccess.
Any enlightenment? Anything else I could post that could be helpful?
Yeah, permissions on .htaccess and .htpasswd are set to read.
Here's what I've tried. I set the AllowOverride to AuthConfig.
If I have .htaccess in both cgi-bin and webroot, and then hit the cgi application, the page loads without asking for a password, but the content from the webroot (images, css, and javascript) fail to load. Removing the .htaccess from webroot results in a perfectly loaded page, but no request for password.
.htaccess looks like:
AuthUserFile /usr/local/apache/conf/.htpasswd
AuthGroupFile /dev/null
AuthName "App Name"
AuthType Basic
require valid-user
The .htaccess file looks OK to me.
> Here's what I've tried. I set the AllowOverride to AuthConfig.
Did you restart Apache? When changes are made to httpd.conf srm.conf or access.conf Apache normally needs to be restarted for the changes to become effective.
Also check that AuthConfig was added to AllowOverride in the correct
<Directory /paths>
In many Apache setups there can be several <Directory> directives, including a separate one for cgi-bin
There is a seperate directory setting for .htaccess files which is probably not the same as your webdocument directory. Check this out. I do not have my laptop with Apache with me at the moment so I can't check it out.
If you can't find this setting, reply and I'll take a look this evening.