wampserver2.4.9多站点配置笔记

来源:互联网 发布:mac 系统 修改用户名 编辑:程序博客网 时间:2024/06/05 20:43

    找到D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf

    把httpd.conf

   <Directory />
    AllowOverride none
    Require all denied
   </Directory>

   修改为:

  <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
    Satisfy all
  </Directory>

   然后找到#Include conf/extra/httpd-vhosts.conf,把前面#注释去掉,就可以直接在httpd-vhosts.conf配置

  httpd-vhosts.conf下的配置:

  <VirtualHost *:80>

    DocumentRoot "D:/wamp/www"
    ServerName localhost

    <Directory "D:/wamp/www">
            Options Indexes
            Order allow,deny
            Allow from all
            Satisfy all
    </Directory>
</VirtualHost>

记笔记,大神勿喷