apche 多端口配置及网站指向非apche默认的网站文件夹设置方法
程序员文章站
2023-11-14 16:40:40
## virtual hosts## if you want to maintain multiple domains/hostnames on your# machine...
#
# virtual hosts
#
# if you want to maintain multiple domains/hostnames on your
# machine you can setup virtualhost containers for them. most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# ip addresses. this is indicated by the asterisks in the directives below.
#
# please see the documentation at
# <url:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# you may use the command line option '-s' to verify your virtual host
# configuration.
#
# use name-based virtual hosting.
#
namevirtualhost *:81
namevirtualhost *:82
namevirtualhost *:83
namevirtualhost *:84
namevirtualhost *:85
namevirtualhost *:86
#
# 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 <virtualhost> block.
#
<virtualhost *:81>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/www-nongye
servername www.dede.com
errorlog d:/appserv/www/www-nongye/errornongye.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:82>
<directory "d:/appserv/www-chinaec" >
options followsymlinks
#deny from all
allow from all
</directory>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www-chinaec
servername www.dede.com
directoryindex index.php index.html
errorlog d:/appserv/www-chinaec/errornongjiale.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:83>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/www-05110
servername www.dede.com
errorlog d:/appserv/www/www-05110/errornong05110.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:84>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/wordpress
servername www.dede.com
errorlog d:/appserv/www/wordpress/errornongwordpress.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:85>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/magento
servername www.dede.com
errorlog d:/appserv/www/magento/errormagento.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:86>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/magento1322
servername www.dede.com
errorlog d:/appserv/www/magento1322/errormagento1322.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:88>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/www-nongjiale
servername www.dede.com
errorlog d:/appserv/www/www-nongjiale/errornongjiale.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:80>
serveradmin webmaster@dummy-host2.x
documentroot "c:/apache2.2/docs/dummy-host2.x"
servername dummy-host2.x
errorlog "logs/dummy-host2.x-error.log"
customlog "logs/dummy-host2.x-access.log" common
</virtualhost>
# virtual hosts
#
# if you want to maintain multiple domains/hostnames on your
# machine you can setup virtualhost containers for them. most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# ip addresses. this is indicated by the asterisks in the directives below.
#
# please see the documentation at
# <url:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# you may use the command line option '-s' to verify your virtual host
# configuration.
#
# use name-based virtual hosting.
#
namevirtualhost *:81
namevirtualhost *:82
namevirtualhost *:83
namevirtualhost *:84
namevirtualhost *:85
namevirtualhost *:86
#
# 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 <virtualhost> block.
#
<virtualhost *:81>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/www-nongye
servername www.dede.com
errorlog d:/appserv/www/www-nongye/errornongye.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:82>
<directory "d:/appserv/www-chinaec" >
options followsymlinks
#deny from all
allow from all
</directory>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www-chinaec
servername www.dede.com
directoryindex index.php index.html
errorlog d:/appserv/www-chinaec/errornongjiale.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:83>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/www-05110
servername www.dede.com
errorlog d:/appserv/www/www-05110/errornong05110.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:84>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/wordpress
servername www.dede.com
errorlog d:/appserv/www/wordpress/errornongwordpress.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:85>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/magento
servername www.dede.com
errorlog d:/appserv/www/magento/errormagento.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:86>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/magento1322
servername www.dede.com
errorlog d:/appserv/www/magento1322/errormagento1322.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:88>
serveradmin jsw7001@hotmail.com
documentroot d:/appserv/www/www-nongjiale
servername www.dede.com
errorlog d:/appserv/www/www-nongjiale/errornongjiale.log
customlog logs/dummy-host2.appservnetwork.com-access_log common
</virtualhost>
<virtualhost *:80>
serveradmin webmaster@dummy-host2.x
documentroot "c:/apache2.2/docs/dummy-host2.x"
servername dummy-host2.x
errorlog "logs/dummy-host2.x-error.log"
customlog "logs/dummy-host2.x-access.log" common
</virtualhost>
上一篇: java23种设计模式(二)抽象工厂模式