-
Notifications
You must be signed in to change notification settings - Fork 501
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
Easegress response with 403 when a domain name is used for server URL #447
Comments
confirmed that |
Currently, Easegress always uses We can use a But there's another case, we cannot prevent users from configuring the server pool as below, and I think the case could be reasonable. servers:
- url: https://www.megaease.com
- url: https://www.megaease.cn In this case, setting a fixed I propose to check the server URL before sending the request, and clear However, there's still an issue with the solution: the user will find his/her configuration failed to take effect if he/she does want to set a fixed |
Using Go HTTP library for setting the correct Host for domain names sounds like a good idea. I don't know either if someone would like to provide another value for |
Here's how I think about this problem. First, we need to set up a final requirement/validation of the request to the endpoint, which is that the two parameters Use the host in the URL of the server in filter Proxy by default without using the host from the client or request adaptor. Supporting changing host dynamically seems not useful for now, we could do it if there were a real requirement elsewhere. |
Describe the bug
Easegress response with 403 when a domain name is used for server URL.
To Reproduce
Steps to reproduce the behavior:
curl HTTP://127.0.0.1:10080/
Expected behavior
Easegress returns the correct response.
Version
All version.
Configuration
Easegress Configuration
default
HTTP server configuration
Additional context
Investigation shows that the request has been sent to the backend server, a possible cause is a wrong
Host
in the request.The text was updated successfully, but these errors were encountered: