-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Don’t set SERVER_PORT to empty string (reverse proxy) #3568
Comments
Update: I checked RFC3875 which makes it clear that Caddy must set
|
Interesting. @mholt I think we should look at |
Actually wait, what's your Caddyfile? Are you using a unix socket for If that's the case, we can skip that env for compliance. |
#3570 should fix both of the issues, I think. Could you give it a shot? You can use the CI artifact from here: https://github.com/caddyserver/caddy/actions/runs/165314958 |
Awesome, thanks! I can confirm that it fixes both issues, furthermore you are correct that I am using a unix socket for FastCGI (so there is no port). |
I ran into an issue with a PHP framework that got confused about
SERVER_PORT
being set to an empty string.Assuming this framework has been used with many other web servers, it implies that the de facto standard is to either have a value, or not set it at all, which I therefore propose that Caddy does as well.
That said, I did open an issue with the PHP framework in question (bcosca/fatfree#1194) as I believe their code should be updated, but the problem may also affect other frameworks, which is why I am also opening an issue with Caddy.
The text was updated successfully, but these errors were encountered: