Mark
asked on
trouble with .htaccess file, apache
I'm running apache 2.4.10 on Linux Slackware64 14.1 kernel 3.10.17.
This .htaccess file works:
What am I doing wrong?
This .htaccess file works:
AuthType Basic
AuthName "DAV-upload"
AuthUserFile /etc/httpd/passwords
Require user joe
This one does not:AuthType Basic
AuthName "DAV-upload"
Require valid-user
I get
Internal Server ErrorWhy? Apache docs indicates 'valid-user' "will allow anyone in that is listed in the password file, and who correctly enters their password." http://httpd.apache.org/docs/2.4/howto/auth.html. And, 'valid-user' appears to be permitted in .htaccess files: http://weavervsworld.com/docs/other/passprotect.html
The server encountered an internal error or misconfiguration and was unable to complete your request.
What am I doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. I did write a script to create the http password file from the /etc/shadow file, so at least that simplifies things and the users don't have to remember 2 passwords:
cut -d: -f1,3 /etc/passwd | grep ":300" | cut -d: -f1 | \
while read
do
grep "^$REPLY" /etc/shadow | cut -d: -f1,2
done > /etc/httpd/passwords
cut -d: -f1,3 /etc/passwd | grep ":300" | cut -d: -f1 | \
while read
do
grep "^$REPLY" /etc/shadow | cut -d: -f1,2
done > /etc/httpd/passwords
ASKER