Perhaps its not nginx related. Does your provider allow you to connect to your public IP from your own server? E.g. can you telnet to your domain.com port 80 from the command line? -Michaelby michael - Nginx Mailing List - English
When will I not need to calculate Content-Length? When using X-Accel or when using PHP readfile()...? With X-Accel, yes, I should not need to calculate the Content-Length... What about when/if using readfile() -Michaelby michael - Nginx Mailing List - English
Are you setting Content-Type before X-Accel or after? I was just testing X-Accel and ran into the same issue. Turns out I applied Content-Type prior to X-Accel and it worked. Per the documentation (or a mailing list post somewhere) X-Accel *inherits* Content-Type, so I'd imagine if the server received an X-Accl before Content-Type, the Content-Type would've been "determined" already.by michael - Nginx Mailing List - English
Yes, I'm in the process of doing that -- have it already in testing... But it would seem kinda odd that it would occur at all... -Michaelby michael - Nginx Mailing List - English
Sorry, forgot to mention, I'm using nginx/0.6.35 -Michaelby michael - Nginx Mailing List - English
Hi, I am having a weird issue where nginx is truncating a few bytes of content from the end of files. The files are being served from PHP (FastCGI via php-fpm) using PHP's readfile(). The PHP application sends out a Content-Length header using filesize() and then spits out the contents of the file to nginx using readfile(). The content however is coming short by a few bytes. nginx sends theby michael - Nginx Mailing List - English