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?
ProxyPass
directive is your solution. But what is the difference between the incoming request of/another-path
andhttps://my-website/another-path
. Are that different vhosts?https://example.com/this-path
gets forwarded tohttps://example-1.com/
.