httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tonu Mikk <>
Subject [users@httpd] restricting a subdirectory in virtual host
Date Mon, 17 Dec 2007 17:05:05 GMT
I would like to make a document root folder of a virtual host open to 
public, but restrict access to root/admin folder to certain IP ranges 
only.  Below is what I have currently.  I have restricted the 
survey/admin folder, but everyone can still view pages.  Any suggestions 
on what I am doing wrong?  Thank you,

DocumentRoot /var/www/survey
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    <Directory /var/www/survey>
        Options FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    <Directory /var/www/survey/admin>
        Options FollowSymLinks MultiViews
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from localhost

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message