【发布时间】:2011-10-19 06:52:07
【问题描述】:
我正在使用 Arch Linux 3.0-ARCH。我已将/etc/httpd/conf/httpd.conf 中的DocumentRoot 从/srv/http 更改为/var/www。然后我发出了这个命令:
% sudo /etc/rc.d/httpd restart
:: Restarting Apache Web Server [BUSY]
Warning: DocumentRoot [/srv/http] does not exist
虽然如果我将文件复制到/var/www,它们可以在本地主机上看到。
我设置了正确的权限——/var/www 归 root 所有,它的组是www。我和 Apache 运行的 http 用户都是该组的成员。该目录的权限为775。
【问题讨论】:
-
您是否有其他 .conf 文件?或者不止一个 VirtualHost,其中一个包含旧的 DocumentRoot 路径?您可能已经检查过那些,但我认为询问并没有什么坏处。 :)
标签: apache http apache2 httpd.conf archlinux