Report this

What is the reason for this report?

Multiple sites on a single droplet: Apache + nginx

Posted on October 20, 2013

Looking for best practices to running multiple sites from a single droplet.

I’ve followed instruction to setup a standard LAMP stack but have been suggested to use nginx for managing virtual hosts; which is causing problems with apache running.

Should I use both Apache and nginx? If just nginx, how does that work with a LAMP stack? What should I do to disable Apache sites-available and sites-enabled?



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!

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.

You should use either Apache OR Nginx, using both at the same time can become a headache, while it can be done. <br> <br>Watch these tutorials for more info, they should be a help. <br>Installing LAMP: http://www.youtube.com/watch?v=JvKrsOJY-iY <br>Setting up your domain name: http://www.youtube.com/watch?v=FZ7CsNykw9c <br>Setting up Apache: http://www.youtube.com/watch?v=sxK_tqwPpO0 <br> <br>If you have any questions, just reply! <br>

Forgot to mention, those links I gave you were for setting up Apache. If you want a Nginx install tutorial, I suggest for you to watch these two: http://www.youtube.com/watch?v=yU5YcNmfY7o, http://www.youtube.com/watch?v=0CzajTTq1rw. <br> <br>Again, if you have any questions, just reply!

I’ve had folks suggest I use nginx based upon performance; I’ve previously run a simple LAMP stack with apps like WordPress in the past, if I’m moving from a managed server to a VPS for the first time, what makes the most long-term sense? <br> <br>In other words, what reasons should I look to run Apache instead of nginx (which seems to be what most of my peers are recommending)?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.