我在ubuntu上安装了apache2
,我把DocumentRoot
值改成了我的工作文件夹。 我的文件夹path是/home/user/My\ Works/sites
所以我将我的DocumentRoot
更改为:
DocumentRoot / home / user / My \ Works / sites
但是当我重新加载的Apache我得到这个错误:
/etc/apache2/sites-enabled/mysite.conf第4行的语法错误:DocumentRoot带有一个参数,文档树的根目录Action'configtest'失败。 Apache错误日志可能有更多的信息。 …失败!
如果我的文件夹名称中有空格,该怎么办?
简单地引用路径:
DocumentRoot "/home/user/My Works/sites"