Red Hat Bugzilla – Bug 163360
Bad: Cannot host web services
Last modified: 2007-11-30 17:11:10 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Description of problem:
httpd doesn't start after changing DocumentRoot to any other directory other than the default.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.change DocumentRoot "/var/www/html" to DocumentRoot "/net/html"
3.save and start /etc/init.d httpd start
Actual Results: Starting httpd: [FAILED]
Expected Results: Starting httpd: [OK]
This is not ok, as the default location is vulnerable to hack attacks.
I am assuming you want httpd and not the HelixPlayer
Yes that is true, I want httpd.
This is due to the SELinux policy, which prevents httpd from accessing
directories without an acceptable security context.
You can fix the security context using the chcon command, for example:
# chcon -R -t httpd_sys_content_t /path/to/docroot
For further information on SELinux/Apache integration in Fedora Core,
please see: http://fedora.redhat.com/docs/selinux-apache-fc3/
For general information on SELinux in Fedora Core, please see: