方法代码如下:
# 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>
© 版权声明
本文刊载的所有内容,包括文字、图片、音频、视频、软件、程序、以及网页版式设计等部门来源于互联网,版权均归原作者所有!本网站提供的内容服务于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯本网站及相关权利人的合法权利。
联系信息:邮箱aoxolcom@163.com或见网站底部。
联系信息:邮箱aoxolcom@163.com或见网站底部。
THE END
请登录后发表评论
注册
社交帐号登录