I need to create a sub-directory mapping in the Apache server such that each request made to the path /another-path
gets forwarded to https://some-website/another-path
. How could I do this?
If the incoming request is on my server https://my-website/another-path
. I want it forward to another server on https://some-website/another-path
.
How can I do this?
Please have a look at https://stackoverflow.com/questions/1393706/how-to-use-a-different-path-name-in-proxypass-than-the-tomcat-context-name which is nearly the same problem but with Tomcat.
Use
ProxyPass
. The problem is not the domain, the problem is the different location on the backend server.ProxyPass
andProxyPassReverse
can handle that. If it isn't working out of the box, then try ´Rewrite` hack on the response.But I think, this isn't necessary (I didn't test that rewrite).