Thursday, June 20, 2013

How to Set Up Nginx Virtual Host on CentOS 5





First, install nginx before create a nginx virtual host on centos 5.

Create a web root directory for the new virtual host
for example i want to create vhost directories for dicatatdl.tk

#cd /var/www
#mkdir -p dicatatdl.tk/{public_html,logs,stats}



Setup Nginx virtual host config for dicatatdl.tk

#nano /etc/nginx/conf.d/dicatatdl.tk.conf
Append configuration as follows:

server {
listen

Baca Juga

How to Set Up Nginx Virtual Host on CentOS 5
4/ 5
Oleh
Tampilkan Komentar
Sembunyikan