Bug 163360 - Bad: Cannot host web services
Bad: Cannot host web services
Product: Fedora
Classification: Fedora
Component: httpd (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
: Security
Depends On:
  Show dependency treegraph
Reported: 2005-07-15 10:19 EDT by Raju Joseph
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-17 17:10:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Raju Joseph 2005-07-15 10:19:04 EDT
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):

How reproducible:

Steps to Reproduce:
1.edit /etc/httpd/conf/httpd.conf
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]

Additional info:

This is not ok, as the default location is vulnerable to hack attacks.
Comment 1 John (J5) Palmieri 2005-07-15 10:34:06 EDT
I am assuming you want httpd and not the HelixPlayer
Comment 2 Raju Joseph 2005-07-15 10:37:40 EDT
Yes that is true, I want httpd.
Comment 3 Joe Orton 2005-07-17 17:10:09 EDT
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:

Note You need to log in before you can comment on or make changes to this bug.