Nginx Virtual Hosting

How to setup Nginx Virtual Hosting in CentOS/Rhel 7.x

Setup Nginx Virtual Hosting in CentOS/Rhel 7.x   Prerequisites : https://www.natsav.com/blog/2017/01/28/how-to-install-and-configure-nginx-on-centosrhel-7-x You need to create websites to share the same IP address : #mkdir -p /var/www/virtualhost/site1.example.com #mkdir /var/www/virtualhost/site2.example.com #chmod 755 /var/www/virtualhost […]