How to proxy to http://localhost/ ? #455

rjsteinert opened this Issue Aug 26, 2013 · 1 comment


None yet
2 participants

Hi there. Please excuse my n00b status but I was wondering how I might be able to proxy a service at the end of a remote domain name to somewhere in my localhost domain. When I use the usual method of proxying, the host doesn't know what I'm talking about because I think the hostname "localhost" is being passed as the hostname to the target server as opposed to the domain name I defined.

var options = {
  router: {
    'localhost': '', 

If this dev server had a dedicated IP address I bet it would work but that's not the case as it shares an IP address with other servers. I looked at the Forward Proxy example which involves a remote domain name but I don't quite get why there are three services involved to connect two.


yawnt commented Nov 7, 2013

if you only need to proxy that particular domain you can alias it in /etc/hosts, without using http-proxy!

yawnt closed this Nov 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment