Bug 169835

Summary: RFE: making suexec-docroot more configurable
Product: Red Hat Enterprise Linux 4 Reporter: Andreas Thienemann <andreas>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-04 11:51:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andreas Thienemann 2005-10-04 09:48:02 UTC
The suexec-docroot is currently hardcoded to /var/www during compilation, which
makes sense for "simple" webserver.
As soon as users are having virtualhosts in their homedirs, suexec cannot be
installed for these users, as /home/user/www.example.com is outside of the docroot.

Our current fix is to recompile the httpd packages with a changed docroot. It
works, but is a nuisance.

It might make a nice addition to RHEL to be able to make the suexec-docroot
configurable by either editing a /etc/sysconfig file or by adding a configure
tag to the main httpd.conf.

Comment 1 Joe Orton 2005-10-04 11:51:29 UTC
Thanks for contacting us.

It's really not safe to start having the suexec binary start reading files to
determine the configuration; it is a standalone binary for a good reason.  You
could place the user-managed vhost directories in /var/www/<vhost> instead, as
is normal practice.