Apache configuration virtual host, Apache virtual host
#在httpd. conf Open Virtual hosts Include conf/extra/httpd-vhosts.conf# and then configure # in httpd-vhosts.conf to match by IP #
# DocumentRoot "E:/htdocs" # directoryindex index.html index.htm index.php#
# Options Followsy Mlinks # allowoverride None # Order allow,deny#
allow from all# #
#根据端口号来匹配 #
# DocumentRoot "E:/htdocs" # directoryindex index.html index.htm index.php#
# Options Followsy Mlinks # allowoverride None # Order allow,deny#
allow from all# #
#根据主机名匹配
documentroot "E:/htdocs" ServerName localhost directoryindex index.html index.htm index.php
Options followsymlinks allowoverride None Order allow,deny
allow from all
documentroot "E:/htdocs/dedecms" ServerName dedecms.com directoryindex index.html index.htm index.php
Options followsymlinks allowoverride None Order allow,deny
allow from all
documentroot "E:/htdocs/discuz" ServerName discuz.com directoryindex index.html index.htm index.php c5> Options followsymlinks allowoverride None Order allow,deny
allow from all
#在window Configuring the Host File
http://www.bkjia.com/PHPjc/976452.html www.bkjia.com true http://www.bkjia.com/PHPjc/976452.html techarticle Apache configuration Virtual host, Apache virtual host #在httpd. conf Open Virtual hosts Include conf/extra/httpd-vhosts.conf# and then in httpd-vhosts.conf Inside config # According to IP to match # Vi ...