Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable Targets #40

Open
nathagey opened this issue Jan 9, 2017 · 0 comments
Open

Variable Targets #40

nathagey opened this issue Jan 9, 2017 · 0 comments

Comments

@nathagey
Copy link

nathagey commented Jan 9, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant