understanding nginx proxy magic

Johan Martinez jmartiee at gmail.com
Tue Nov 25 01:49:12 UTC 2014

I installed nginx as a reverse proxy in front of apache server. No
configuration change was made on apache and nginx is simply passing all
requests to the backend apache. Now website is more responsive and it can
handle 1.3 times more load than just apache in picture. I am wondering
what's nginx magic that made website faster even though apache is still
doing almost all the work. I am not systems expert so any pointers on why
such setup is faster will be helpful. There isn't much configuration to
nginx than:

 location / {
            proxy_set_header Host www.example.com;
            proxy_redirect off;

Reason for such simple setup is to slowly migrate from apache to nginx.

- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20141124/a18fc828/attachment-0001.html>

More information about the nginx mailing list