I have tried putting the restrictions paragraphs in httpd.conf,
but they have never worked even for the passwd restrictions.
That's why I moved the
restrictions based on passwds out to the .htaccess files
in the web directories themselves.

I did try your suggestions inside httpd.conf again this morning, but
apache ignored the restriction paragraph.  Everyone is allowed.

I have

        <Directory />
                Options FollowSynLinks
                AllowOverride All
        </Directory>

included in httpd.conf so that the .htaccess files work (to some
degree)

kernel-2.4.3-12
apahce-1.3.19-5

>In your httpd.conf file, put something like the following:
>
><Location /aliased-directory-here>
>   order deny,allow
>   deny from all
>   allow from .domain.here.com
>   allow from 192.168.1.0/26
>   allow from 192.168.5.64/28
></Location>
>
>Substitute the netblock and CIDR notation netmasks where appropriate.
>
>On Thu, 1 Nov 2001, Margaret Doll wrote:
>
>>  I am using .htaccess files in some directories of my web pages to
>>  restrict access to those directories and directories under them to
>>  certain accounts with passwords.  This works.
>>
>>      AuthName "Some Name of the section of web pages"
>>      AuthType Basic
>>      AuthuserFile /home/httpd/something/filename
>>      require user username
>>
>>  I am now trying to use .htaccess files in other directories to limit
>>  access to those directories by ip address.  The setup follows.   This
>>  does not work; everyone is denied access.
>>
>>      order deny,allow
>>      deny from all
>>      allow from mysubnet.net.edu my2ndsubnet.net.edu
>
>
>
>_______________________________________________
>Seawolf-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/seawolf-list


-- 



                                        Margaret Doll  (401-863-1982)
                                        [EMAIL PROTECTED]
                                        (401) 745-7306 (beeper)



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to