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

softyun3年前服务器137

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

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

相关文章

Web服务器识别技术揭秘

[一]用nc查看web服务器返回的HTTP报头语法为 nc zzvips 80[二]根据URL中的元素扩展名采用的技术服务器平台.plPerlCGI脚本各种平台,一般是Unix.asp活动服务器页面M...

如何通过IP查询详细地址,IP查询详细地址的方法

1.什么是IP地址?IP地址是InternetProtocolAddress的简称,即互联网协议地址。在互联网上,每一台连接到互联网上的设备都会被分配一个最的IP地址。2.什么是IP地址查询?通过IP...

Windows10本地搭建IIS+PHP+MYSQL+phpMyAdmin运行环境(也可用于服务器)

准备工作 需要提前下载的工具软件1、php5.45,windows应该使用PHP的非线程安全(NTS)版本。我经常用织梦程序做站,所以选择php-5.4.45-nts-Win32-VC9-x...

免费代理服务器地址是如何获取的,如何使用免费代理服务器地址进行网络访问

1.免费代理服务器地址的概念免费代理服务器地址指的是提供免费代理服务的服务器的地址。代理服务器作为一种中介服务器,可以为客户端发送请求和获取响应,从而实现客户端的网络访问。2.免费代理服务器地址的分类...

云服务器出租有哪些优势和劣势,让你的网站更加稳定可靠

1.什么是云服务器出租?云服务器出租是指企业或个人通过购买云服务器的使用权,来运行自己的应用程序、网站、数据库等服务的一种方式。云服务器出租提供了一种灵活的方式,无需花费大量的资金来购买物理服务器或维...

哪些网站使用美国域名,美国网站域名与其他最有什么不同

1.美国网站域名美国网站域名,是指以“.com”、“.org”、“.net”等后缀为结尾的网站域名。这些后缀在全球范围内都非常流行,但是美国网站域名相对其他最拥有更多的注册数量和使用率。美国网站域名的...