nginx-container icon indicating copy to clipboard operation
nginx-container copied to clipboard

Disable port_in_redirect by default.

Open jdwhite opened this issue 5 years ago • 0 comments

Given these nginx instances are configured to run in containers, is there any reason that port_in_redirect off; should not be a default directive in the server {} block? I realize one can add that directive to a file in ./nginx-default-cfg/, but given the unlikely scenario of wanting the internal container listening port exposed by a redirect it seems reasonable to disable by default.

Scenario: foo.org/blah =[redirect]=> foo.org:8080/blah/, which will fail because haproxy (or the like) isn't listening to 8080.

jdwhite avatar Feb 26 '20 15:02 jdwhite