[ALUG] Apache access conundrum

Chris G cl at isbd.net
Thu Nov 1 14:28:48 GMT 2007


I'm trying to restrict apache access to some areas of my home machine,
so I have added the following sections to the httpd.conf file:-

    <Directory /var/www/html/chris>
        AllowOverride None
        Options None
        Order Deny,Allow
        Deny from all
        Allow from 192.168.1 193.128.168.194
        AuthType Basic
        AuthName "ISBD Home Server"
        AuthUserFile /etc/httpd/conf/passwd
        Require valid-user
        Satisfy Any
    </Directory>

    <Directory /var/www/html/maxine>
        AllowOverride None
        Options None
        Order Deny,Allow
        Deny from all
        Allow from 192.168.1 193.128.168.194
        AuthType Basic
        AuthName "ISBD Home Server"
        AuthUserFile /etc/httpd/conf/passwd
        Require valid-user
        Satisfy Any
    </Directory>


The /var/www/html/maxine section works perfectly, I can access it
without any hassle from home machines (192.168.1) and from work
(193.128.168.194), plus if I access it from elsewhere I am asked for a
password and, if entered correctly, I get access.

However the /var/www/html/chris section doesn't work at all.  From
work I just get "You don't have permission to access /chris/ on this
server." and from elsewhere I'm asked for a password but after
entering the password I just get the 403 again.

So what can possibly be the difference?  The permissions down the tree
from /home are the same for both.  I'm stumped.

Ah, *maybe* it's because it's looking for permission to view the
directory at /var/www/html/chris, I'll check.

-- 
Chris Green



More information about the main mailing list