You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aaron Axelsen <ax...@amadmax.com> on 2002/07/20 04:35:23 UTC

Directory Restriction

Here is my setup.  I Have allowoveride set to authconfig indexes limit

The web root file carries a .htaccess file that reads the following:

Order Deny,Allow
Deny from All
Allow from 192.168.0
AuthType Basic
AuthName "Axman's Website"
AuthUserFile /var/www/.htpasswd
require valid-user
Satisfy Any

Now my challenge is that I want to restrict access from certain folders
to only local and not over the internet.  I have added rules such as to
the httpd.conf:

<Location /manual/*>
    Order Deny,Allow
    Deny from all
    Allow from 192.168.0
    AllowOverride None
</Location>

The rule works fine when the .htaccess file is removed.  How do I set
everything to make it work for me?

---
Aaron Axelsen
AIM: AAAK2
Email: axelseaa@amadmax.com
URL: www.amadmax.com
 
"It said, ""Insert disk #3,"" but only two will fit!"
"One picture is worth 128K words."



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org