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

http-proxy returning 404 with external server #720

Closed
wclr opened this issue Oct 27, 2014 · 2 comments
Closed

http-proxy returning 404 with external server #720

wclr opened this issue Oct 27, 2014 · 2 comments

Comments

@wclr
Copy link

wclr commented Oct 27, 2014

Trying to proxy request to /api to external server:

            app.all('/api/*', function(req, res){
                proxy.web(req, res, { target: 'http://someexternalserver.com'}, function(err){
                    res.status(502).send(err)
                });
            });

But proxy returns (client gets) 404. Where someexternalserver.com is hosting server.

This works with localhost. It should be simple. What is the problem?

@wclr wclr changed the title http-proxy returning 404 http-proxy returning 404 with external server Oct 27, 2014
@wclr
Copy link
Author

wclr commented Oct 28, 2014

this is due to #696

@wclr
Copy link
Author

wclr commented Oct 29, 2014

Fixed with #723

@wclr wclr closed this as completed Oct 29, 2014
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