2011/1/26 Juan JesÃs Cremades Monserrat <relicary@xxxxxxxxx>: > Hi, > I have a Server (server1) with the next directories: > > /var/www/html/dir1 > /var/www/html/dir2 > /var/www/html/dir3 > /var/www/html/dir4 > > And I want redirect an external URL across a Proxy (proxy1) to 'dir1' > I tried this meaning in the "httpd.conf" at proxy1: > <VirtualHost *> > ÂÂServerName external_url > ÂÂProxyPass / Âhttp://server1/ > ÂÂProxyPassReverse / Âhttp://server1/ > ÂÂProxyRequests Off > ÂÂProxyPreserveHost On > ÂÂ Â<Location /dir2> > ÂÂ Â Âorder deny,allow > ÂÂ Â Âdeny from all > ÂÂ Â</Location> > ÂÂ Â<Location /dir3> > ÂÂ Â Âorder deny,allow > ÂÂ Â Âdeny from all > ÂÂ Â</Location> > ÂÂ Â<Location /dir4> > ÂÂ Â Âorder deny,allow > ÂÂ Â Âdeny from all > ÂÂ Â</Location> > ÂÂ Â<Location /dir1> > ÂÂ Â Âorder deny,allow > ÂÂ Â Âallow from all > ÂÂ Â</Location> > </VirtualHost> > It works, but I would like some brief and efficient meaning . Thanks <Location /> Order allow,deny Allow from all </Location> <LocationMatch ^/dir(?!1/)> Deny from all </LocationMatch> Cheers Tom --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx