how to configure xampp in windows if project files are not in root directory

半腔热情 提交于 2019-12-12 09:17:18

问题


i am using windows .my xampp is install in drive C ,firstly i worked here in my files

 C->xampp->htdocs->SVN data->php_clients->trunks->myproject

but than for SVN i copy paste my all files here now SVN Is configured here

D->SVN data->php_clients->trunks->myproject

i am testing my project locally i mean in localhost,firstly it was in

 C->xampp->htdocs->SVN data->php_clients->trunks->myproject

so i was able to work ,test,update now i am suppose to work in files which is located here

 D->SVN data->php_clients->trunks->myproject

but problem is of xampp what is the nice and easy way so that i work here and work locally that is localhost

D->SVN data->php_clients->trunks->myproject

回答1:


go  here that is C:\xampp\apache\conf\httpd.conf 
open httpd.conf
Find This DocumentRoot "C:/xampp/htdocs" Edit this to 
DocumentRoot "D:/SVN data/php_clients/trunks/myproject"
after that find this tag
<Directory> and make it like this 
<Directory "D:/SVN data/php_clients/trunks/myproject">
Restart Your Apache go to browser write http://localhost in address bar and see your app


来源:https://stackoverflow.com/questions/9399238/how-to-configure-xampp-in-windows-if-project-files-are-not-in-root-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!