  | |  | Authentication problems | Authentication problems 2005-01-14 - By Jamie Kerwick
Hi Alan,
When I try to access the protected page I get a 403 error not a 401.
This tends to suggest that the filesystem permissions are not set correctly and that the user apache is running as (according to the httpd.conf you posted the to its 'apache') doesn't have permissions to the files / directory.
I would check to make sure that the user apache can access these files / directory (easiest way is, in a console window, to su to root then do 'su apache' now try and access the files/ directory.
If you are using a .htaccess you will need to check on the apache users' access to this file too.
Jamie
-----Original Message----- From: Alan Lloyd [Hosting Reserve] [mailto:alan.lloyd@(protected)] Sent: 14 January 2005 10:40 To: users@(protected) Subject: [users@(protected)] Authentication Problems
Hello
I am having a few problems with authentication. No matter what I do I can not set up a password protected directorys.
I have tried using .htaccess, a directory container in the conf file even tried using plesk (plesk does it automatically in the conf file).
When I set everything up all I get is a 401 error. There is no pop-up login box. So no chance to even enter a passwd.
Other directives in .htaccess files seem to work ok. Just not authentication!
I do get some errors in the logs but nothing I understand! (see below)
The server is only a week only RH9 running httpd 2.0.40-21.17.legacy php 4.3.10-1.rh90.art mod_python 3.0.1-4 mod_perl 1.99_07-5 perl-Apache-ASP 2.57-rh9.build75041216.14
I am not that hot on *nix stuff and this has really got me stumped. The syntax of the .htaccess files are correct as they work when moved to other servers (with path changes obviously)
I have posted a copy of my conf file here if anyone wants to take a look http://tor-bay.co.uk/httpd_conf.txt
Here is the error log (not live) http://tor-bay.co.uk/error_log.txt
The directory I am trying to protect is http://tor-bay.co.uk/admin/
The server php info page can be seen here if needed http://hosting-reserve.co.uk/info.php
There are no errors logged (debug) when accessing the page that should be protected except 404 (error page not found) in the domain log. Server log shows errors when I restart apache (see end of log file for latest restart)
I have googled for the past two days with no luck. Hope someone has some ideas. I did check with the plesk support team but they assure me it can not be a plesk problem as plesk does not change or interfere with apache in any way. The did suggest it may be a permissions problem but they look correct.
When you look at the httpd_conf.txt file you will see some of the modules have been commented out. That was me, they were all live. I have just been trying to comment things out to see if that helps.
I don't have much of a clue about re-compiling programs etc on RH9 so please keep it simple for me if you do have any ideas :)
Thanks in advance Alan
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@(protected) " from the digest: users-digest-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
************** E-mail Disclaimer ************** This e-mail message is confidential and for use by the addressee only. If you are not the intended addressee, please reply to the sender and then delete the message from your computer.
Please note that any views or opinions presented in this e-mail are those of the author and do not necessarily represent the views or opinions of The Benenden Healthcare Society Limited.
You should check this e-mail and any attachments for the presence of viruses. The Benenden Healthcare Society Limited accepts no liability for any damages caused by any virus transmitted by this e-mail or its attachments.
The Benenden Healthcare Society Limited is an incorporated friendly society, registered under the Friendly Societies Act 1992, registered number 480F. The Society?s contractual business (the provision of tuberculosis benefit) is authorised by the FSA. The remainder of The Society?s business is undertaken on a discretionary basis. The Society is subject to FSA requirement for prudential management.
Registered Office Address: The Benenden Healthcare Society Limited, Holgate Park Drive, York. YO26 4GG. Tel: 0870 7545 700 Fax: 0870 7545 822 www.benenden.org.uk
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@(protected) " from the digest: users-digest-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |