Sample Apache Virtual Host Entry
A sample Apache Virtual Host Entry for your reference.
vi /etc/httpd/conf/httpd.conf
————————
————————-
——————————
NameVirtualHost 67.159.54.145:80
NameVirtualHost 67.159.54.146:80
ServerName sample.com
ServerAlias www.sample.com
DocumentRoot /home/sample/public_html
ServerName techside.com
ServerAlias www.techside.com
DocumentRoot /home/techside/public_html
=============================================================
hash all lines in this file other wise default page will display
/etc/httpd/conf.d/welcome.conf
#
# This configuration file enables the default “Welcome”
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
#
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
#
Categories: Linux Administration Tags: apache virtual host
