Re: [users@httpd] .htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Well I tried all those suggestions, and had no effect.
Then I copied the .htaccess file from the subdirectory into a <Directory>   ... </Directory> in the httpd.conf file
erased the .htaccess file.

rebooted the server...
AND IT WORKED!
Go figure.... no idea what was wrong, but I don't care now that it works.....:-D

Thanks for the help!

Thanks!
David Challener





sfeehan@xxxxxxxxxxxx (Steve Feehan)

11/06/2006 11:57 AM

Please respond to
users@xxxxxxxxxxxxxxxx

To
users@xxxxxxxxxxxxxxxx
cc
Subject
Re: [users@httpd] .htaccess





On Mon, Nov 06, 2006 at 08:13:04AM -0800, Sander Temme wrote:
>
> On Nov 6, 2006, at 7:34 AM, Dave Challener wrote:
>
> >HOWEVER... it won't accept any of the userid / password  
> >combinations I give it.
>
> What are the permissions on /root/SOadmin/.htpasswd, can the web  
> server child processes read it? They do not run as root, so you need  
> world-readable on that file. You might need world-readable on all  
> directories above it, too.
>
> S.

The file should not be world readable, rather readable by the user
and/or group that apache runs as. The file should generally not be
writable by the apache user/group. So if apache is running as group
'www' then the following permissions would be advisable:

 chown root:www /root/SOadmin/.htpasswd
 chmod 640 /root/SOadmin/.htpasswd

Also, the parent directories don't need to be world readable, but
only executable to the user/group that apache runs as.

--
Steve Feehan

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux