I'm trying to do something like this to setup the following.
But I'm getting a 404 on the /proxy/about request when changing lines 47 - 60 in doge.js:
var proxy = httpProxy.createProxyServer({})
app.use(require('../')([], selects, true));
app.use("/proxy",
function (req, res) {
proxy.web(req, res, {
target: 'https://nodejs.org/en'+req.url,
agent: https.globalAgent,
headers: { host: 'nodejs.org' }
});
});
Should I be thinking about this differently?
I'm trying to do something like this to setup the following.
But I'm getting a 404 on the
/proxy/aboutrequest when changing lines 47 - 60 in doge.js:Should I be thinking about this differently?