Make a Virtual Host On Centos
Do you know that that a web hosting provider only have one ip address but have much to handle a domain name. See example bellow:IP Address web hosting provider is 202.43.187.16
and domain name is handled:
- jaringankantor.com
- biruvoice.com
- ppir.net
Follow me....
# vim /etc/httpd/conf/httpd.conf
and thengo to end line type
:$
and switch to type mode with press i
in vi/vimAnd add the code bellow:
finish edit with vi/vim and pressNameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin nc.anwar@gmail.dotcom
DocumentRoot /srv/www/htdocs/jaringankantor # Don't forget this directory must exist
ServerName jaringankantor.com
ErrorLog /var/log/jaringankantor.com_log
</VirtualHost>
ESC
and save with type :wq
.The last type:
# service httpd restart
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.