Posts Tagged ‘apache virtual host’

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
#

Be the first to comment - What do you think?  Posted by ZACH - November 30, 2011 at 3:24 pm

Categories: Linux Administration   Tags: