Exclude regular expression from virtual host
- by Joao Trindade
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?