understanding nginx proxy magic

Valentin V. Bartenev vbart at nginx.com
Tue Nov 25 13:20:52 UTC 2014


On Monday 24 November 2014 17:49:12 Johan Martinez wrote:
> 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_pass   http://127.0.0.1:8080;
>             proxy_redirect off;
>         }
> 
> 
> Reason for such simple setup is to slowly migrate from apache to nginx.

Here's a comprehensive explanation:
http://www.aosabook.org/en/nginx.html

  wbr, Valentin V. Bartenev



More information about the nginx mailing list