Skip to content

Variable Targets #40

@nathagey

Description

@nathagey

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions