gpt4 book ai didi

Apache 在编辑配置文件并重新启动后搜索旧的 DocumentRoot

转载 作者:可可西里 更新时间:2023-11-01 16:31:08 25 4
gpt4 key购买 nike

我正在使用 Arch Linux 3.0-ARCH。我已经将 /etc/httpd/conf/httpd.conf 中的 DocumentRoot/srv/http 更改为 /var/万维网。然后我发出了这个命令:

% 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

最佳答案

您检查过这些设置了吗?

/etc/httpd/conf/extra/httpd-ssl.conf
/etc/httpd/conf/extra/httpd-userdir.conf
/etc/httpd/conf/extra/httpd-vhosts.conf

关于Apache 在编辑配置文件并重新启动后搜索旧的 DocumentRoot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6929945/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com