Re: apache authentication
Ernst-Magne Vindal wrote:
I'm trying to set up a site under my main site with auth, but can get it
What I have done is:
htpasswd -c /usr/local/apache/passwd/passwords username
chown root.nogroup /usr/local/apache/passwd/passwords
I create the file as root and leave it's ownership status alone.
chmod 640 /usr/local/apache/passwd/passwords
I also don't chmod any differently then the default.
I have also tried with the password file named .htpasswd, but the result
is the same.
I don't use .htaccess as it causes apache to take a performance hit
(read the apache manual for more about that)
and for the access file:
AuthName "By Invitation Only"
Require user username
AuthName "AW Stats"
I have almost the same config for users home dir, and thats working
fine. The only difference is that I use "Require valid-user" insted of
the config above.
Can anyone pls help?
Trash the pw file, create a new one, leave it alone, then just use
If need be, keep a seperate pw file for the "By invite Only" and your
other protected dir.
I'm running debain 2.4.20 and apache 1.3.27-0.1