Slackware 13.1 - Simple apache2 virtual host example
=====================================================
Public domain
********************************************************************************
### /etc/httpd/httpd.conf
Listen 8000
Listen 8001
Include /etc/httpd/extra/httpd-vhosts.conf
********************************************************************************
### /etc/httpd/extra/httpd-vhosts.conf
NameVirtualHost *:8001
NameVirtualHost *:8000
ServerAdmin webmaster@localhost
DocumentRoot "/srv/httpd/htdocs/"
CustomLog "/var/log/httpd/access_log" combined
ServerAdmin webmaster@localhost
DocumentRoot "/srv/httpd/alert/"
Options FollowSymLinks
AllowOverride All
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
CustomLog "/var/log/httpd/access_log" combined
********************************************************************************
### /etc/httpd/extra/httpd-vhosts.conf
NameVirtualHost *:80
DocumentRoot "/srv/www/htdocs/default"
ServerName default.com
ServerAlias www.default.com
ErrorLog "/var/log/httpd/default.com-error_log"
CustomLog "/var/log/httpd/default.com-access_log" common
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DocumentRoot "/srv/www/htdocs"
ServerName mahestan.info
ServerAlias www.mahestan.info
ErrorLog "/var/log/httpd/mahestan.info-error_log"
CustomLog "/var/log/httpd/mahestan.info-access_log" common
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DocumentRoot "/srv/www/htdocs/zhost"
ServerName zhost.ir
ServerAlias www.zhost.ir
ErrorLog "/var/log/httpd/zhost.ir-error_log"
CustomLog "/var/log/httpd/zhost.ir-access_log" common
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
********************************************************************************
_BY: Pejman Moghadam_
_TAG: apache, virtual-host_
_DATE: 2011-10-12 23:38:20_