Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行 Amazon Web Service 的基本 Fedora 8 LAMP 堆栈的一个小实例。默认站点设置在 /home/username/helloworld,但我选择的 Web 根目录是 /home/username/example.com。问题是,当服务器重新启动时,它使用 /home/username/helloworld 中的 httpd.conf 启动。我什至不知道从哪里开始寻找这个。有什么建议么?
从阅读开始/etc/httpd/conf/httpd.conf。它可能包含其他文件,但您可以关注它们并查看。
/etc/httpd/conf/httpd.conf
如果修改此文件,则可以更新 apache:
切换到根: su -
su -
检查配置: service httpd configtest
service httpd configtest
优雅重启: service httpd graceful
service httpd graceful
不要忘记备份!