Welcome! Log In Create A New Profile

Advanced

nginx windows + apache backend: slow php files in nginx

December 10, 2011 02:57PM
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
Subject Author Posted

nginx windows + apache backend: slow php files in nginx

ricardok1 December 10, 2011 02:57PM

Re: nginx windows + apache backend: slow php files in nginx

Ensiferous December 10, 2011 11:04PM

Re: nginx windows + apache backend: slow php files in nginx

ricardok1 December 11, 2011 04:22AM

Re: nginx windows + apache backend: slow php files in nginx

ricardok1 December 16, 2011 06:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready