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

softyun3年前服务器80

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

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

相关文章

Apache 多端口多站点配置方法

配置httpd.conf监听多个端口复制代码 代码如下:# Listen: Allows you to bind Apache to specific IP addresses and/or# por...

win7配置iis服务器

相信我们大家都见到过网站,尤其是现在,我们每天都会选择上网购物。那么对于网站服务器是怎样配置的呢?说白了,网站配置,基本上是IIS配置。下面小编就来详细的介绍一下win7如何配置iis服务器。iis服...

什么是在线外国服务器代理,在线外国服务器代理的功能和意义

1.在线外国服务器代理的概念在线外国服务器代理是指用户利用互联网连接一台位于国外的服务器来代替本地计算机与互联网之间的通信,实现最、速度等方面的保障。该服务可以运用于许多场景,如突破最、访问国外网站等...

主机托管服务怎么选择,主机托管服务的优势和劣势

主机托管服务,也是指租用互联网数据中心里的服务器来存储网站,是一个非常普遍并且受欢迎的选择。选择合适的托管服务可以让网站实现更高效的运营和更好的性能,但这个选择也有自身的优势和劣势。灵活性:主机托管服...

如何注册中文域名,中文域名注册流程

1.什么是中文域名中文域名是在域名后缀中使用中文或汉字作为标识的域名,例如:中国互联网信息中心注册服务管理部门推出的中文域名包括:.中国、.公司、.网络等。与传统的英文域名相比,中文域名更能体现企业或...

JspStudy如何设置PHP根目录可编辑

更新之后的JspStudy2016,更新之后我发现无法指定织梦网站的路径了,无法指定路径自然打不开网站。于是我看了一下,发现JspStudy2016可以设置,于是我就设置了一下JspStudy软件。J...