PDA

View Full Version : .htaccess error


harryguy082589
6th September 2005, 09:08 PM
I'm trying to a .htaccess file and i keep getting the following error:'


------------------
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.54 (Fedora) Server at www.hdanforth.com Port 80
-----------------

This is my .htaccess file:

UserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic

require user personal

--------------------

I'm not sure what other info to give, I'm useing FC4 and apache 2.0.54

I checked that my apache config file, and it set to let me use .htaccess files and it is. Any other sugestions?

Thanks in advance,

Dan

Jman
7th September 2005, 03:45 AM
Any errors in /var/log/httpd/ ?

Spoon!
7th September 2005, 04:24 AM

I already responded to your question (http://www.linuxforums.org/forum/topic-54784.html) on LinuxForums.org; for reference, I said:

You probably want something like this for your .htaccess file:
AuthType Basic
AuthName "ByPassword"
AuthUserFile /var/www/.htpasswd
Require user personal
Read this tutorial for more information: http://httpd.apache.org/docs/2.0/howto/auth.html