Hi there,
I started to test nginx windows + apache/php backend on a Win7 x64 machine.
I haven't discovered why this happenning:
Test 1 - ab -n 300 -c 20 http://127.0.0.1:[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 http://127.0.0.1:[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_pass http://127.0.0.1:8080;
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 $proxy_add_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?
Thanks
Ricardo