I am trying to use node-http-proxy to proxy my site to another site eg google.com whenever I try some of the examples they give in the docs on github instead of my site showing the content of google.com it just redirects to google.com this is the code I am using
var proxy = require("http-proxy");
var options = {
router: {
"myserver.com" : "google.com"
}
}
var proxyServer = proxy.createServer(options);
proxyServer.listen(80);
I am doing this wrong and its just for reverse proxy? If it is what in the node-http-proxy allows me to do regular proxies?