NGINX - performance HTTP server Support Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Unofficial (YET) support forums for NGINX, a performance HTTP server.

Pages: [1]   Go Down

Author Topic: Keep-Alive & serving from proxy-store problem  (Read 387 times)

0 Members and 1 Guest are viewing this topic.

beracah

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • View Profile
Keep-Alive & serving from proxy-store problem
« on: June 17, 2009, 09:40:16 PM »
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.
« Last Edit: June 17, 2009, 09:43:25 PM by beracah »
Logged
Pages: [1]   Go Up
« previous next »
 

Page created in 0.04 seconds with 20 queries.