现在的位置: 首页 > 综合 > 正文

apache 基于ip的虚拟主机配置

2013年05月30日 ⁄ 综合 ⁄ 共 1976字 ⁄ 字号 评论关闭
<Directory "D:/EmpireServer/web">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

<Directory "D:/EmpireServer/weibo">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

 

 

<VirtualHost 192.168.2.40:82>
    ServerAdmin      cms@G2.home
    DocumentRoot     "D:/EmpireServer/web" 
    ServerName       cms
</VirtualHost>

<VirtualHost 192.168.2.54:82>
    ServerAdmin      weibo.home
    DocumentRoot     "D:\EmpireServer\weibo" 
    ServerName       weibo
</VirtualHost>

 

抱歉!评论已关闭.