WAMP3.1.3自定义根目录

 1.首先找到httpd.conf 文件,搜索documentroot
shell

  修改前:DocumentRoot "${INSTALL_DIR}/www"spa

   <Directory "${INSTALL_DIR}/www/">orm

  修改后:DocumentRoot "D:/Zend/Demo"blog

            <Directory "D:/Zend/Demo/">ci

           

          

2.修改httpd-vhosts.conf文件,搜索documentrootit

修改前:DocumentRoot "${INSTALL_DIR}/www"io

<Directory "${INSTALL_DIR}/www/">ast

修改后:DocumentRoot "D:/Zend/Demo" class

             <Directory "D:/Zend/Demo/">List

3.修改菜单栏的www目录到自定义的路径下面

                

1)进入WAMP的根目录,找到wampmanager.ini 文件,搜索menu.left

    修改前:Type: item; Caption: "www目录"; Action: shellexecute; FileName: "${INSTALL_DIR}/www"; Glyph: 2

    修改后:Type: item; Caption: "Demo目录"; Action: shellexecute; FileName: "D:/Zend/Demo"; Glyph: 2

                      

                     

 

2)找到wampmanager.tpl 文件,搜索menu.left

   修改前:Type: item; Caption: "{w_wwwDirectory}"; Action: shellexecute; FileName: "${wwwDir} "; Glyph: 2

   修改后:Type: item; Caption: "Demo目录"; Action: shellexecute; FileName: "D:/Zend/Demo"; Glyph: 2

                   

                    

4.保存后,须要从新启动全部服务

       

相关文章
相关标签/搜索