nginx redirecting to wrong port
jodok at lovelysystems.com
Fri Apr 4 19:59:30 MSD 2008
On 04.04.2008, at 15:39, Roxis wrote:
> On Friday 04 April 2008, Jodok Batlogg wrote:
>> nginx runs behind a big-ip loadbalancer. the load-balancer accepts
>> connections on port 80, but connects to nginx on port 8080.
>> whenever i request a directory without trailing slash, nginx
>> to the directory with slash, but on the wrong port.
>> http://www.mysite.com/directory -> http://www.mysite.com:8080/directory
>> any idea how to tell nginx, that the port is 80?
> syntax: port_in_redirect [ on|off ]
> default: port_in_redirect on
> context: http, server, location
> Directive allows or prevents port indication in redirects handled by
thanks i misinterpreted the docs before :)
"Beautiful is better than ugly."
-- The Zen of Python, by Tim Peters
Jodok Batlogg, Lovely Systems GmbH
Schmelzhütterstraße 26a, 6850 Dornbirn, Austria
mobile: +43 664 9636963, phone: +43 5572 908060
More information about the nginx