Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Dynamic Virtual Hosts in apache

Author:black - Fri Oct 29 19:11:45 2004

#Simple dynamic virtual hosts
#
#   This extract from apache2.conf implements the virtual host arrangement
#   outlined at http://www.apache.org/docs/vhosts/mass.html, using
#   mod_vhost_alias.

# get the server name from the Host: header
UseCanonicalName Off
#
# this log format can be split per-virtual-host based on the first field
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog logs/access_log vcommon
#
# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /var/www/%0/htdocs
VirtualScriptAlias  /var/www/%0/cgi-bin
#
#   This configuration can be changed into an IP-based virtual hosting
#   solution by just turning UseCanonicalName Off into UseCanonicalName DNS.
#   The server name that is inserted into the filename is then derived from
#   the IP address of the virtual host.
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk