Bug 76274
Summary: | GUI apache configuration tool writes bad DirectoryIndex directive | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Raul Acevedo <raul> |
Component: | redhat-config-httpd | Assignee: | Phil Knirsch <pknirsch> |
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.0 | CC: | jim, jorton, lamune, rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-10-29 14:14:16 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
Raul Acevedo
2002-10-18 23:37:01 UTC
I can verify this as true. Upgraded to 8.0 and my old httpd.conf was no longer valid. The redhat-config-httpd tool builds a config file where the DirectoryIndex directive is empty, resulting in all http accesses to the system returning the default test page. The problem only manifests itself when you create a virtual host other than the default one. Should be an easy fix. Adding the entry that raul mentioned cures the problem. (Note: I think the apache config tool's data lives in /etc/alchemist/namespace/apache but I don't know if that is true or not) The files in /etc/alchemist/namespace/apache are binary files, and it would seem are not editable. I did find /usr/share/apacheconf/httpd.conf.xsl which appears to be a httpd.conf file wrapped in what I believe is XML. Maybe that is the file used by redhat-config-httpd for its default values. It would be nice to know for sure. OK, i've checked with the latest version that'll be out via rawhide real soon now and there it works nicely. Concerning the question about the template file, thats "fairly" simple: r-c-h uses internally a XML representation of the configuration. Parsing a httpd.conf file was out of the question when we designed the tool quite some time ago as it's really a mess to parse correctly. So all configuration things are stored in /etc/alchemist/namespace/redhat-config-httpd where you can find a local.adl and a rpm.adl (btw, the alchemist is our XML backend software). The rpm.adl contains the 'default' setup which we ship and which is used as a basis for the configuration. All local changes are stored in local.adl. Both files are gziped XML files so can be manually edited. From the final XML configuration the httpd.conf file is generated using the Xslt Processor of 4Suite. The xslt file for the configuration can be found here: /usr/share/redhat-config-httpd/httpd.conf.xsl It uses only fairly simple Xslt style things as anything else gets fairly messy in Xslt. Thats about it. Just in case you wondered how r-c-h creates the config file. :-) Read ya, Phil |