Question

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

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

Subscribe
Share

Submit an 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.