Consider two urls:
- www.mysite.com/*
- www.mysite.com/browse/*
The backend runs at http://localhost:8080
How can I make sure that all requests with following pattern will end up at my backend like below?
Example:
www.mysite.com/doA --> localhost:8080/doA
www.mysite.com/browse/doA --> localhost:8080/doA
So basically both www.mysite.com/doA and www.mysite.com/browse/doA result in the same thing.
I want to use apache server. I can redirect one using proxy_http. But it doesn't work for two or more urls:
This is my config that work for one url
<VirtualHost *:80>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyRequests Off
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>