Exclude regular expression from virtual host
Posted
by
Joao Trindade
on Server Fault
See other posts from Server Fault
or by Joao Trindade
Published on 2011-03-17T15:08:40Z
Indexed on
2011/03/17
16:11 UTC
Read the original article
Hit count: 227
apache
I have a virtual host in apache which is redirecting requests to another web server.
<VirtualHost *:80>
DocumentRoot /var/www
ServerName another.host
ProxyPass / http://another.host2:8081/
ProxyPassReverse / http://another.host2:8081/
</VirtualHost>
I need to exclude an URL pattern from being catch by this virtual host. Basically I don't want requests with the url: http://another.host:8081/~username to be forwarded to the other server.
Can this be done?
© Server Fault or respective owner