Question

Using a PURE nginx server VS Apache (with nginx as the reverse proxy)

Hello, I’ll try to give as much information as possible - just to be more clear. I’m almost ready with a Classifieds website based on PHP and Mysql. I’m using Centos 6 with Memcached and Opcache.

I’ve always used Apache as the web-server. And have never really used nginx. But i’ve been lately reading a lot about it. Some say that PURE nginx beats Apache to the ground. Some say, using nginx as the reverse proxy is the best way, as you include all the goodies from nginx and apply it to Apache.

Given my situation, about a classifieds website, what do you feel would be the best option for a web server? And why?

Your replies are appreciated, thanks!

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @BrookDO:

Hi,

We recently posted an article that compares and contrasts Apache and Nginx, and reading it may be a great way for you make your decision: https://www.digitalocean.com/community/tutorials/apache-vs-nginx-practical-considerations There isn’t an absolute right answer in this case, and the performance differences will depend on a lot of real-world variables that might require some A/B testing on your side, or very specific knowledge of how you’ve architected and are serving your site.

View the original comment