| Syntax: | port_in_redirect on | off |
| Default: | on |
| Context: | http server location |
| Reference: | port_in_redirect |
Directive allows or prevents port indication in redirects handled by nginx.
If port_in_redirect is off, then Nginx will not add the port in the url when the request is redirected.