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
#

Related posts:

  1. Essential Linux basic commands The following are the most commonly used commands ls :...
  2. How to disable safe mode in Linux How to disable safe mode In Httpd.conf ServerAlias www.domain.net domain.net...
  3. How To Install Apache Php Mysql in Linux Download three files and save them in /usr/local/src directory. The...
  4. Apache (httpd.conf) Directives A Quick Look ServerType standalone The option ServerType specifies how Apache should run...
  5. Cannot restart Apache : Segmentation fault : Apache Down Apache goes down and wont come up if we try...