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

softyun3年前服务器55

#
# 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>

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

相关文章

宝塔面板如何配置SSL证书?

用宝塔面板的用户越来越多,而且现在http也是一种趋势很多用户在配置SSL的时候遇到了难题,下面就以linux宝塔面板为例,告诉大家在配置宝塔面板时候有哪些注意事项以及流程。首先我们需要将购买验证成功...

什么是双线服务器托管,双线服务器托管的特点及优势

1.双线服务器托管双线服务器托管是指将服务器租用到两个不同的机房,以确保服务器具有更高的可用性和稳定性。这种方式可以避免单一机房出现故障或网络拥堵时服务器无法访问的情况。双线服务器托管的特点:双机房备...

企业主机有哪些特点,什么是企业主机

企业主机是指为企业量身定制的服务器,用于提供稳定可靠的网络服务。与普通家用电脑相比,企业主机具有以下特点:高性能企业主机通常搭载高性能的处理器和内存,能够快速处理大量数据和请求,保证企业的业务流畅运行...

谁在抢注域名,如何成功的抢注域名

1.域名抢注域名抢注是指在域名最构开放前注册并持有域名的行为。域名抢注是因为有些好的域名被抢先注册,而普通人只能通过收购或争夺获取,因此抢注者需要通过注册软件、成千上万的账户进行注册,以赚取利润。域名...

如何进行IP查询,轻松获取网络信息

1.什么是IP地址?IP地址是InternetProtocol的缩写,意为“网际协议”,通俗点理解就是网络传输中的地址。它就像是一个房子的门牌号码,用于标识网络中的设备。2.如何查询IP地址?可在搜索...

Service Temporarily Unavailable的503错误是怎么回事?

一般来说,出现Service Temporarily Unavailable错误多半是因为网站访问量大,造成了流量超限或者并发数大引起的资源超限出现的错误。解决的方法一个是升级空间到更佳配置,要么就是...