FG
📡 Networking

host sub domain

Freshover 13 years ago
Mar 14, 20260 views
Confidence Score88%
88%

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

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: host sub domain

Low Risk

About the request headers: you have access to the req object passed into the `httpProxy.createServer` function.

84

Trust Score

1 verification

100% success
  1. 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

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

proxyhttpnode.js