Hi all,
I'm new to the forum, but I've been using nginx for about a year now on a couple of my servers. Anyway, I'm setting up a new server, super powerful and all, and I'm using nginx(+proxy-store)->[.php3?]->apache/php as the chain. I'm using proxy-store to store copies of the pages generated by apache, which are served by nginx directly if they exist. Lots of ppl use this setup, nothing too special about it; copies are deleted by script when the content changes. Anyway, I've observed something really quite odd. When nginx is serving from the proxy-store/mirror, the keepalive header is not transmitted to the client. But when it is serving the live version from apache (the version that will be stored), the keepalive header is transmitted. Similarly, when I download a static file (js/gif/jpeg, etc) from nginx directly, the keepalive is inserted as well.
my nginx.conf file has:
keepalive_timeout 65; in the http section, like normal.
Is there some restriction about the proxy store and using keepalive? Or is keepalive always used for clients, regardless of whether the header appears? I'm in the quest for maximal performance and lowest latency on content delivery, and I'd hate to loose all the speed I'm gaining from the proxy-mirror to multiple http requests.
I'm using nginx 0.8.1, though I've noticed the same thing from .7.34 & .7.59, but didn't worry about it then-
Thanks!
Beracah
ps: re: fcgi, I've used fcgi php in the past, but I get more flexibility with apache/php (+mod_perl) for page composition and filtering. >95% of the pages are served off of the proxy store.