I want that all http/https requests that come to a server for a particular virtualhost to be tunneled to my local machine.
Say my apache server has a virtualhost dev.nands.com, I would want all http/https requests coming to this virtualhost to be tunneled to my local machine. Other virtual hosts in the server should not be tunneled.
How can I do this ?
Best Answer
Set up your SSH tunnel to forward a local port on the web server to your system's web service (pick an unused port where I've used 8080):
Then, set up a vhost that'll send requests to the new local port on the web server.