nginx redirecting to wrong port
Jodok Batlogg
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
>> redirects
>> 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?
>
> http://wiki.codemongers.com/NginxHttpCoreModule#port_in_redirect
>
> 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
> nginx.
thanks i misinterpreted the docs before :)
jodok
>
>
--
"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
mailing list