host sub domain
Problem
This simple proxy server <pre> var httpProxy = require('http-proxy'); httpProxy.createServer(function (req, res, proxy) { var options = { host: "localhost", port: 5984 }; proxy.proxyRequest(req, res, options); }).listen(5000); </pre> if i change host:"localhost" to host:"subdomain.domainoninternet.com" if get 'Host not found' back, is this the "www . host" issue? https://github.com/nodejitsu/node-http-proxy/issues/150 on a related question, is there a way to set request headers before they are sent to destination? (to set Auth headers from the server) thank you
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: host sub domain
About the request headers: you have access to the req object passed into the `httpProxy.createServer` function.
Trust Score
1 verification
- 1
About the request headers: you have access to the req object passed into the `ht
About the request headers: you have access to the req object passed into the `httpProxy.createServer` function.
Validation
Resolved in http-party/node-http-proxy GitHub issue #217. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep