{"id":21478,"date":"2017-02-08T07:41:07","date_gmt":"2017-02-08T13:41:07","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=21478"},"modified":"2022-06-03T03:42:20","modified_gmt":"2022-06-03T08:42:20","slug":"how-to-set-up-nginx-server-blocks-on-ubuntu-and-centos","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-server-blocks-on-ubuntu-and-centos\/","title":{"rendered":"How to Set up Nginx Server Blocks on Ubuntu and CentOS"},"content":{"rendered":"
<\/div>

\"How<\/p>\n

In this tutorial, we are going to provide you with step by step instructions on how to set up nginx server blocks on Ubuntu 16.04 <\/a> and\u00a0\u00a0CentOS 7.<\/a> Nginx server blocks are often used to run multiple websites on a single IP address.<\/p>\n

<\/p>\n

Note that this tutorial is for Nginx<\/a> only. If you use Apache, you’ll need to <\/em>set up virtual hosts<\/em> <\/a><\/p>\n

\n

Table of Contents<\/p>\n