httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaun T. Erickson" <...@smxy.org>
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 1.2.3.4
>     </Directory>
> </VirtualHost>

Thanks. Will this work also?

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

	-ste

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message