Let's say the I have a web server running on port 3000, so example.com:3000 and another one on the 80, so: example.com
Is it possible to map example.com/map to example.com:3000 ?
I would like to map a directory to a different port of a different Apache installation, but I would like to hide the 3000 number.
Thanks.
Use an HTTP proxy that listens on port 3000. If you try to use the rewriter, it will force a client-side redirect, which will not be what you are after.
I know you can map virtual hosts to different ports using different sites like examlple1.com and example2.com - that's just in vhosts it's pretty easy.
But if you want to map a subdirectory to a different port I don't think you can do that without URL Rewriting on the backend so they didn't know it was happening - it wouldn't be very clean. You could do it relatively easily if you made it a subdomain like map.example.com
The simplest way I think is to have two VirtualHosts.