zoukankan      html  css  js  c++  java
  • apache配置多个虚拟主机

      

    设置apache 多个虚拟目录记录  

    #配置第2个虚拟目录
    <VirtualHost 127.0.0.2:80>
    ServerName www.xx.com
    DocumentRoot "E:/wamp/www/"
    </VirtualHost>

    <Directory "E:/wamp/www/">
        Options Indexes FollowSymLinks Multiviews
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>
    #配置第2个虚拟目录
    在wampinapacheapache2.2.8confhttpc.conf  文件下面最后加入以上 就可以设置多个虚拟目录了

    例如:

    #配置虚拟主机
    <VirtualHost 127.0.0.2:80>
    ServerName www.baozhuangji.com
    DocumentRoot "F:/sinaApp/komiles/1/"
    </VirtualHost>
    
    <Directory "F:/sinaApp/komiles/1/">
        Options Indexes FollowSymLinks Multiviews
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>
    
    #配置虚拟主机
    <VirtualHost 127.0.0.3:80>
    ServerName www.baozhuangji.cn
    DocumentRoot "D:/webRoot/metinfo/"
    </VirtualHost>
    
    <Directory "D:/webRoot/metinfo/">
        Options Indexes FollowSymLinks Multiviews
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>
  • 相关阅读:
    使用RPC的接口创建账户同时购买内存并为其抵押CPU和NET资源
    使用RPC的接口创建账户
    【移动安全基础篇】——21、Android脱壳思路
    插件
    NGUI 优化
    影子
    优化文章索引
    MVC
    《你不常用的c#之XX》
    CMake
  • 原文地址:https://www.cnblogs.com/wangkongming/p/3965266.html
Copyright © 2011-2022 走看看