-
Notifications
You must be signed in to change notification settings - Fork 336
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
Proxy HTTP: Added standard port for inet and inet6 #1261
base: master
Are you sure you want to change the base?
Proxy HTTP: Added standard port for inet and inet6 #1261
Conversation
Added a standard port for IPv4 and IPv6 addresses when using proxy and HTTP, eliminating the need to specify an additional port 80. This is defined by the RFC standards for HTTP. Currently Nginx Unit only uses HTTP connections for proxying, version 1.1.
Hi @Pavlusha311245,
https://www.man7.org/linux/man-pages/man3/getaddrinfo.3.html |
@hongzhidao Thanks for the review In the current implementation, this is a quick fix that will allow you to at least allocate a default port and it is strictly aimed at only inet implementations excluding changes to unix at this stage. I think that we can start working with the proxy part of the web server :) Regarding domains and https support, I think we should start a separate discussion and discuss further actions |
I guess the current implementation may introduce issues like this:
It's an invalid configuration, but it's allowed with the patch. |
Yes it is, but it is still HTTP, which works on port 80 by default. The ability to add and use another port has not gone away. And also does not interfere with the operation of unix sockets |
I feel |
Then I will wait for your decision with the team. I think I can move this part only to the proxy section |
Indeed. Btw, the other idea I can think of right now is to do it like this in proxy module.
|
To echo @hongzhidao I'm not against the idea, but I think the location is wrong. This should really happen in the proxy code. |
Hi @Pavlusha311245,
We think it's a good idea to support the feature, welcome to continue. |
Added a standard port for IPv4 and IPv6 addresses when using proxy and HTTP, eliminating the need to specify an additional port 80. This is defined by the RFC standards for HTTP. Currently Nginx Unit only uses HTTP connections for proxying, version 1.1.
https://datatracker.ietf.org/doc/html/rfc2616#page-12