Report this

What is the reason for this report?

how to set up 2 sites on one server Linux in conjunction nginx + apache

Posted on December 11, 2016

How to install and configure the 2 sites on a single Linux server in conjunction nginx + apache on centos 6. If you can throw off the manual



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 don’t really need both Apache and Nginx, all sites will work with one, but in some cases you want to do so. There is Ubuntu tutorial for it but it still can apply to CentOS: How To Configure Nginx as a Reverse Proxy for Apache.

To set up multiple sites, Virtual hosts for Apache and Server Blocks for Nginx will do th job: How To Set Up Apache Virtual Hosts on CentOS 6. How To Set Up nginx Virtual Hosts (Server Blocks) on CentOS 6.

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.