How to Change the www root directory on WampServer 2.5

后端 未结 5 1006
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 07:23

My need is to change the default sites directory of wamp from say \"c:\\wamp\\www\" to say \"d:\\sites\". Right now my projects in \"d:\\sites\" do not show in the project l

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 08:05

    1. Go to apache httpd

      C:\wamp\bin\apache\apache2.2.22\conf

    2. Open httpd

    3. Find DocumentRoot in that file

    4. Change the path

    5. Find the directory tag

    6. Change to Allow from all from Deny from all in Directory tag

      
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
      
      
    7. Save & exit

    8. Restart wamp services

提交回复
热议问题