Welcome! Log In Create A New Profile

Advanced

301 Redirects Break Long Posts?

Harish Agarwal
January 14, 2012 09:50PM
Hello,

I'm running nginx 1.0.10 with a few name based virtual hosts configured.
There are a few permanent redirects configured of the format:

server {
listen 80;
server_name domain.com;
rewrite ^/(.*) http://www.domain.com/$1 permanent;
}

The site sees frequent POSTs to it, which in turn seemingly randomly
disconnect from the upstream server after sending the data along (the
request completes successfully upstream and then complains of a broken pipe
as nginx has disconnected). The disconnects seem highly coupled to 301
redirects - in the debug logs it appears that every POST is interrupted by
a permanent redirect (and that the thread serving the request stops serving
requests entirely after the redirect finishes, the last debug statement
being "http log handler"). After removing the server block the POSTs run
without any problems. I'm wondering if this is enough information to
arouse anyone's suspicions as to what the problem is? Any help would be
greatly appreciated.

-Harish
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

301 Redirects Break Long Posts?

Harish Agarwal January 14, 2012 09:50PM

Re: 301 Redirects Break Long Posts?

António P. P. Almeida January 14, 2012 10:02PM

Re: 301 Redirects Break Long Posts?

Harish Agarwal January 14, 2012 10:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready