httpd fails with "DocumentRoot must be a directory" with NFS document root
Issue
- Apache webserver fails to start on booting, as well as with
service httpd restart, with the following error:
# service httpd start
Starting httpd: Syntax error on line 293 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
- How can I serve a webpage in an NFS export share as a website via Apache httpd?
Environment
- Red Hat Enterprise Linux 6
- Apache
httpdweb server - Webserver
DocumentRooton NFS share
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
