Nginx (for static files) and Apache (for dynamic content)?
Posted
by matthewsteiner
on Server Fault
See other posts from Server Fault
or by matthewsteiner
Published on 2010-05-26T18:28:46Z
Indexed on
2010/05/26
18:33 UTC
Read the original article
Hit count: 247
So, my entire application runs on apache just fine. However, I want to test how much the requests per second increases if I put all static files through nginx instead.
I found this thread: http://stackoverflow.com/questions/869001/how-to-serve-all-existing-static-files-directly-with-nginx-but-proxy-to-apache-t
But I have a couple problems. I'm completely new to nginx, so I'm not sure where to put the configuration. (The file is at /etc/nginx/nginx.conf, but I don't know if I just add the code to the bottom or what?)
Also, how can I have both servers running at the same time? Is it because they both listen on port 80? Right now I have to stop one to start the other, and that's as far as I've gotten.
Thanks for any help.
© Server Fault or respective owner