You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In section Setup a stand-alone proxy server with custom server logic:
We have:
`var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, { target: 'http://127.0.0.1:5060' });
});
console.log("listening on port 5050")
server.listen(5050);`
Instead of:
`var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, { target: 'http://127.0.0.1:5050' });
});
console.log("listening on port 5050")
server.listen(5050)'
And also the same thing in section Setup a stand-alone proxy server with proxy request header re-writing
The text was updated successfully, but these errors were encountered:
subomi
added a commit
to subomi/node-http-proxy
that referenced
this issue
Feb 28, 2016
In section Setup a stand-alone proxy server with custom server logic:
We have:
`var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, { target: 'http://127.0.0.1:5060' });
});
console.log("listening on port 5050")
server.listen(5050);`
Instead of:
`var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, { target: 'http://127.0.0.1:5050' });
});
console.log("listening on port 5050")
server.listen(5050)'
And also the same thing in section Setup a stand-alone proxy server with proxy request header re-writing
The text was updated successfully, but these errors were encountered: