apche 多端口配置及网站指向非apche默认的网站文件夹设置方法

softyun3年前服务器82

#
# 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: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
         DocumentRoot D:/AppServ/www/www-nongye
         ServerName dede
         ErrorLog D:/AppServ/www/www-nongye/errornongye.log
         CustomLog logs/dummy-host2.appservnetwork-access_log common
</VirtualHost>
<VirtualHost *:82>
    <Directory "D:/AppServ/www-chinaec" >
        Options FollowSymLinks
        #Deny from all
        Allow from all
    </Directory>
         ServerAdmin jsw7001@hotmail
         DocumentRoot D:/AppServ/www-chinaec
         ServerName dede
     DirectoryIndex index.php index
         ErrorLog D:/AppServ/www-chinaec/errornongjiale.log
         CustomLog logs/dummy-host2.appservnetwork-access_log common
</VirtualHost>
<VirtualHost *:83>
         ServerAdmin jsw7001@hotmail
         DocumentRoot D:/AppServ/www/www-05110
         ServerName dede
         ErrorLog D:/AppServ/www/www-05110/errornong05110.log
         CustomLog logs/dummy-host2.appservnetwork-access_log common
</VirtualHost>
<VirtualHost *:84>
         ServerAdmin jsw7001@hotmail
         DocumentRoot D:/AppServ/www/wordpress
         ServerName dede
         ErrorLog D:/AppServ/www/wordpress/errornongwordpress.log
         CustomLog logs/dummy-host2.appservnetwork-access_log common
</VirtualHost>
<VirtualHost *:85>
         ServerAdmin jsw7001@hotmail
         DocumentRoot D:/AppServ/www/magento
         ServerName dede
         ErrorLog D:/AppServ/www/magento/errormagento.log
         CustomLog logs/dummy-host2.appservnetwork-access_log common
</VirtualHost>
<VirtualHost *:86>
         ServerAdmin jsw7001@hotmail
         DocumentRoot D:/AppServ/www/magento1322
         ServerName dede
         ErrorLog D:/AppServ/www/magento1322/errormagento1322.log
         CustomLog logs/dummy-host2.appservnetwork-access_log common
</VirtualHost>
<VirtualHost *:88>
         ServerAdmin jsw7001@hotmail
         DocumentRoot D:/AppServ/www/www-nongjiale
         ServerName dede
         ErrorLog D:/AppServ/www/www-nongjiale/errornongjiale.log
         CustomLog logs/dummy-host2.appservnetwork-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>

免责声明:本文内容来自用户上传并发布,站点仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。请核实广告和内容真实性,谨慎使用。

相关文章

为什么选择美国主机租用,美国主机租用的优势

随着互联网的不断发展,越来越多的人们选择在网上创业或者开展自己的业务。而作为网站建设的基础,主机的选择显得尤为重要。在众多选择中,美国主机租用备受青睐,究竟为何呢?下面我们来看一下美国主机租用的优势。...

移动服务器托管是否更加灵活,移动服务器托管的优点与缺点

1.移动服务器托管移动服务器托管指将手机应用程序的服务器部署在第三方云服务商提供的云服务器上,由第三方负责运维,以达到节约成本、稳定性好等的目的。近年来,随着移动互联网的快速发展和云计算技术的普及,移...

为什么要进行域名快速备案,域名快速备案的重要性

域名备案,是指在工信部备案系统中,对域名使用者信息的登记备案。在我国,所有使用.cn后缀的域名都需要进行备案。如果没有备案或备案不合规,就可能被关闭或者被封锁,甚至涉及到法律责任。而且,备案审批周期长...

Bt(宝塔面板)忘记用户名密码的具体情况分析和解决应对

忘记密码是一件再常见不过的事情了。遇到这样的情况大家也不必太着急和惊慌,我们来具体给大家分析一下。一般情况下宝塔面板忘记用户名和密码的情况不外乎这两种情况:1、面板刚安装好,不小心关掉了ssh工具,然...

宝塔面板nginx关闭状态,启动不了解决办法

安装好宝塔vps,绑定域名然后出现通过宝塔后台查看 发现NGINX服务器关闭状态。宝塔面板nginx关闭状态,启动不了。输入service nginx start然后报错:解决方法:需要杀掉进程,再重...

服务主机有哪些作用,服务主机的定义和功能

1.什么是服务主机?服务主机(Server)通常指一组计算机系统,它们通过计算机网络相互连接并协同工作。其中,被称为服务器的计算机系统担任主要角色,承载了一系列服务程序,满足客户端请求并提供响应。服务...