zoukankan      html  css  js  c++  java
  • wampserver配置多站点

    1.打开C:wampinapacheapache2.2.22confhttpd.conf(因安装的路径而异),查找listen 80 下面加上listen 8080

    2.然后加上

    <Directory "e:/www/">
    #
    # 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 Indexes 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 all

    #
    # Controls who can get stuff from this server.
    #

    # onlineoffline tag - don't remove
    Order Allow,Deny
    Allow from all

    </Directory>

    这是让服务器可以访问e:/www/这个文件夹

    3.搜索Include conf/extra/httpd-vhosts.conf,把之前的#去掉

    4.打开 conf/extra/httpd-vhosts.conf文件,然后加上(注意,要将默认80端口的也加上,否则你将用不了80端口了)

    <Virtualhost *:80>

    ServerName localhost

    DocumentRoot "c:wampwww"

    </Virtualhost>
    <Virtualhost *:8080>

    ServerName localhost

    DocumentRoot "E:www"

    </Virtualhost>

    完成。

  • 相关阅读:
    java语言基础--标识符、关键字
    #考研碎碎念#3
    #考研笔记#计算机之word问题
    #考研#计算机文化知识1(局域网及网络互联)
    #学习笔记#jsp
    #学习笔记#JSP数据交互
    考研随笔2
    考研随笔1
    几个人
    全局变量
  • 原文地址:https://www.cnblogs.com/liuwenbohhh/p/4542627.html
Copyright © 2011-2022 走看看