NginX-Installation-CentOS
=======================
# su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
# yum install nginx
# mkdir -p /nginx/s1.svk.com/
# chown -R nginx:nginx /nginx/s1.svk.com/
# chmod 755 /nginx/
Create an index.html file inside '/nginx/s1.svk.com/'
=======================
# su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
# yum install nginx
# mkdir -p /nginx/s1.svk.com/
# chown -R nginx:nginx /nginx/s1.svk.com/
# chmod 755 /nginx/
Create an index.html file inside '/nginx/s1.svk.com/'
# vi /etc/nginx/conf.d/virtual.conf
# For 1st Server
server {
listen 80;
server_name s1.svk.com;
location / {
root /nginx/s1.svk.com;
index index.html index.htm;
}
}
## Repeat same lines for 2nd server with different "root" and "server_name"
#
# /etc/init.d/nginx restart
On Client Systems
=================
# vi /etc/hosts
192.168.1.17 s1.svk.com
#
Access the website http://s1.svk.com on webbrowser