Skip to content

host sub domain #217

@Agamennon

Description

@Agamennon

This simple proxy server

    var httpProxy = require('http-proxy');
     httpProxy.createServer(function (req, res, proxy) {
     var options = {
           host: "localhost",
           port: 5984
         };
      proxy.proxyRequest(req, res, options);
     }).listen(5000);

if i change host:"localhost" to host:"subdomain.domainoninternet.com"
if get 'Host not found' back, is this the "www . host" issue? #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions