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

does bin/httpd reverse proxy mode follow location #518

Closed
ridams opened this issue Apr 9, 2024 · 3 comments
Closed

does bin/httpd reverse proxy mode follow location #518

ridams opened this issue Apr 9, 2024 · 3 comments

Comments

@ridams
Copy link

ridams commented Apr 9, 2024

Using bin/httpd -p 8080 with configuration file : /A/ => http://website2/B/
now using
curl -v http://127.0.0.1:8080/A/test I got :

< HTTP/1.1 302 Found
< Server: nginx
< Date: Tue, 09 Apr 2024 01:13:26 GMT
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Location: http://website2/C

I want to be able to get the content directly (/bin/httpd does the follow location and revisit http://website2/C)
can I just configure that in httpd.conf or I have to make change to source code ?

@ithewei
Copy link
Owner

ithewei commented Apr 9, 2024

curl support auto location,like this:

curl -L <URL>

@ridams
Copy link
Author

ridams commented Apr 9, 2024

Thanks, I know that but the upstream server can leak sensitive data in the location url, I don't want it to be seen by the client or end user

@ithewei
Copy link
Owner

ithewei commented Apr 10, 2024

I know what you mean, but the current implementation is to directly forward the data from the backend server without parsing it, so it may not be that simple to implement. You may consider using nginx as a reverse proxy.

@ithewei ithewei closed this as completed May 15, 2024
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

2 participants