httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaun T. Erickson" <>
Subject Re: [users@httpd] Want to restrict access to a single host
Date Tue, 18 May 2004 15:36:05 GMT
Robert Andersson wrote:

> Shaun T. Erickson wrote:
>>I have a webserver in my DMZ. I want to restrict access to one of the 
>>virtual hosts, to a particular ipaddress. How do I do that?
> <VirtualHost *>
>     DocumentRoot /some/path
>     <Directory /some/path>
>         Order deny,allow
>         Deny from all
>         Allow from
>     </Directory>
> </VirtualHost>

Thanks. Will this work also?

<VirtualHost *>
     DocumentRoot /some/path
     <Location />
         Order Deny,Allow
         Deny from all
         Allow from


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