nginx windows + apache backend: slow php files in nginx

ricardok1 nginx-forum at
Sat Dec 10 19:57:38 UTC 2011

Hi there,

I started to test nginx windows + apache/php backend on a Win7 x64

I haven't discovered why this happenning:

Test 1 - ab -n 300 -c 20[b]80[/b]/hello.php  (nginx
listen port 80)
Requests per second:    [b]106.66 [#/sec] (mean)[/b]

Test 2  -  ab -n 300 -c 20[b]8080[/b]/hello.php 
(apache+mod_php listen port 8080)
Requests per second:  [b] 967.69 [#/sec] (mean)[/b]

My conf file:
		location / {
				  ## Apache / PHP
				  proxy_redirect          off;
				  proxy_set_header        Host            $host;
				  ## For GEOIP  + RPAF (apache modules)
				  proxy_set_header        X-Real-IP       $remote_addr;
				  proxy_set_header        X-Forwarded-For
				  client_max_body_size    2m;
				  client_body_buffer_size 1024k;
				  proxy_connect_timeout   90;
				  proxy_send_timeout      90;
				  proxy_read_timeout      90;
				  proxy_buffering on;
				  proxy_buffers 513 32k;
				  proxy_buffer_size 16m;
				  proxy_busy_buffers_size 16m;

Any thoughts about why Apache gives 10x the speed of Nginx?


Posted at Nginx Forum:,219861,219861#msg-219861

More information about the nginx mailing list