httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Antony <>
Subject Re: [users@httpd] How can I limit access only to specific URLs?
Date Mon, 24 Sep 2007 09:19:49 GMT

>  I have a website (virtual server) and many DNS
> aliases pointed to the same server.
> But I have some directory which should be accessible
> only via specific DNS alias (== URL). 
> If/How this can be done?
> E.g, I have,,
> pointed to the same virtualhost.
> And for I'd like to provide access to
> some dir as
> (it sholdn't be accessible as 


Use the Location directive in each virtual host block.

<Location />
	Order Deny,Allow
	Deny from all
	Allow from 192.168.1 192.168.99


<Location />
	Order Allow,Deny
	Allow from all
	Deny from 192.168.33


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