html tool

2021年6月14日星期一

windows apach-修改root目录

 参考:https://blog.csdn.net/qq_26591517/article/details/80414073

1. 修改httpd.conf文件 
ctrl+F搜索DocumentRoot  ,将路径换成你想要的目录

另外下面有一个Directory pope也替换了,重启后就ok了

DocumentRoot "c:\web-server"

#DocumentRoot "${SRVROOT}/htdocs"

<Directory "c:\web-server">

#<Directory "${SRVROOT}/htdocs">

    #

没有评论:

发表评论