large SSI inclusions are truncated
emmiller at gmail.com
Fri Jun 8 21:37:14 MSD 2007
Igor Sysoev wrote:
> On Fri, Jun 08, 2007 at 08:14:36AM +0000, Evan Miller wrote:
>> I find that files included in an SSI are truncated when:
>> * the inclusion is retrieved from an upstream subrequest
>> * the response to the subrequest is buffered to a file
>> * the response to the subrequest is over about 100KB
>> I am using nginx 0.5.24. It works fine when I set "proxy_max_temp_file_size 0;".
>> I can post a debug log if no one can reproduce the problem.
> Please, send me debug log.
Here's the debug log:
This seems to happen most often (only?) after a SIGHUP.
evanm at tim:~ nginx -V
nginx version: nginx/0.5.24
built by gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
configure arguments: --with-debug
Here's what I did:
evanm at tim:~ sudo rm /usr/local/nginx/logs/error.log
evanm at tim:~ sudo pkill -HUP nginx
evanm at tim:~ wget http://localhost/static/test.html
Here's the contents of test.html:
<!--# include virtual="/guide2.html" -->
The upstream is an Apache serving a static file.
More information about the nginx