7 messages in ru.sysoev.nginxHTTP directory redirect not using $host
FromSent OnAttachments
Bob IppolitoSep 19, 2006 3:31 pm 
Igor SysoevSep 19, 2006 4:03 pm 
Bob IppolitoSep 19, 2006 4:09 pm 
Cliff WellsSep 20, 2006 11:19 am 
Igor SysoevSep 20, 2006 11:58 pm 
Cliff WellsSep 21, 2006 12:43 am 
Igor SysoevSep 21, 2006 8:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:HTTP directory redirect not using $hostActions...
From:Bob Ippolito (bob-@public.gmane.org)
Date:Sep 19, 2006 3:31:35 pm
List:ru.sysoev.nginx

It seems that the redirection from http://example.com/somedir to http://example.com/somedir/ does a 302 using the local hostname rather than the Host header.

I was able to work around the issue using rewrite: if (-d $request_filename) { rewrite ^(.*[^/])$ http://$host$1/; }

It would be nice if this was fixed in a future release. I looked around in the source for a bit, but I wasn't able to find exactly what needs to be changed.

-bob