httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Want to restrict access to a single host
Date Tue, 18 May 2004 15:24:43 GMT
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>

See:
http://httpd.apache.org/docs-2.0/mod/mod_access.html

Regards,
Robert Andersson

---------------------------------------------------------------------
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