LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Authentication (https://www.linuxquestions.org/questions/linux-software-2/apache-authentication-52059/)

AgentRn007 03-27-2003 02:37 PM

Apache Authentication
 
Hey everyone. I am running Redhat 8 and am having problems with authentication. I am new to the Linux thing so please bear with me. I need to authenticate a link on a site and am having problems with it. I have dropped the link into a new directory on the machine inside of the serving directory (/var/www/html/ and file is in /var/www/html/level3/). I have the .htaccess file setup like so:

AuthType Basic
AuthName "Level 3 Tech Support Only"
AuthUserFile /var/www/passwdl3
require user level3

The only line I changed in the httpd.conf file is the AllowOverride line from:

AllowOverride None

to

AllowOverride AuthConfig

The site loads and when the link is clicked on I am able to get the login screen. My problem is that when I input the username and password it doesn't go. It gives me a 401 error saying that Authentication is Required. I have created the passwdl3 file with htpasswd and it is in that location. The user is in the list and the password I use still gives me a 401. I am using Redhat 8 with Apache 2.0.40. Yes I know it is out of date but it works for what I need it to do for now. Anyone have any ideas??? I have been trying to figure it out for 2 weeks now. Any advice would be appreciated

Thanks,
AgentRn007:newbie:

AgentRn007 03-27-2003 02:42 PM

Also I have tried it in Digest Authentication and I get a 500 server error. Forgot to add that.

AgentRn007 03-27-2003 06:50 PM

Nevermind. I found the problem. I had to chmod the password file to 755.


All times are GMT -5. The time now is 09:49 PM.