Friday, October 17, 2008

Virtual Host of Apache - Name-based

在httpd.conf:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

在http-vhosts.conf:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#

DocumentRoot C:/xammp/htdocs/



DocumentRoot C:/xammp/htdocs/xxx_directory
ServerName www.winixhk.com