Nginx windows + apache backend: slow php files in nginx

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 (nginx
listen port 80)
Requests per second: 106.66 [#/sec] (mean)

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

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

This might apply to you:,219822,219822#msg-219822

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

Thanks Martin (Ensiferous).

So you think that the lack of porting some features gives this strange
result on Windows to proxy to Apache? Cache maybe.

The benchmark to serve static files is not affected as much (less 10%

Do you have suggestions?


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

Anybody can give an hint?

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