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

Incorrect URL in logging when using target path #53

Open
milgner opened this issue Apr 20, 2020 · 3 comments
Open

Incorrect URL in logging when using target path #53

milgner opened this issue Apr 20, 2020 · 3 comments

Comments

@milgner
Copy link

milgner commented Apr 20, 2020

After defining a proxy target that includes a URL prefix (http://myproxy/some/path), the requests are proxied to the correct target URL, but the path component of the proxy target is left out of the log message.

I.e. a call to http://myapp/endpoint would call http://myproxy/some/path/endpoint but log a redirect to http://myproxy/endpoint instead.

@ralphiech
Copy link

I can confirm what @milgner is reporting here. Looks like the issue is that you are using the URL function in the log call

@vagusX
Copy link
Owner

vagusX commented Apr 8, 2021

@milgner could you please provide a log with your sample?

I test it using the https://github.com/vagusX/koa-proxies/tree/master/samples/js project, and it seems ok

image

@aecorredor
Copy link

Confirming this also happens to me.

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

4 participants