Bug 26953

Summary: include config directory
Product: [Retired] Red Hat Linux Reporter: chrismcc
Component: apacheAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DEFERRED QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: ganesh
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-10 16:46:45 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 chrismcc 2001-02-10 16:46:41 UTC
Hello...

mod_include can include other config files.
i.e.
httpd.conf:
....
include conf/httpd.conf.virtualhosts
include conf/httpd.conf.horde
...

It can also include all files in a directory if a directory is given as the
argument.

include /etc/httpd/conf.d

Putting this in the redhat default conf would make packageing other web
based software easier.  Like horde/IMP, etc.

the seperate rpm package files could do something like:
horde.spec
...
%files
...
%config /etc/httpd/conf.d/horde.conf
/var/www/horde/*
...


/etc/httpd/conf.d/horde.conf contents:
Alias /horde /var/www/horde
...
<Directory /var/www/horde>
Require valid-user
AuthUserFile /etc/httpd/conf/htpasswd
...
</Directory>


This way you doesn't have to twiddle with the conf file as much.  Apache
upgrades would be easier too.  

Cool ?

Comment 1 Nalin Dahyabhai 2001-02-15 05:25:53 UTC
Yes, it is a very useful feature.  At this time I'm trying very hard to not
change the default configuration file for Apache, so we'll make this migration
later.

Comment 2 chrismcc 2001-02-15 18:43:36 UTC
When you do put it in what do you think the directory would be?

/etc/httpd/conf.d
/etc/httpd/conf/include.d/
other?

I'm packaging up some stuff we use, Horde, bugzilla, etc. to use this structure.
 I can patch apache myself to do this, (it's a one liner :).  But, I'd hate to
go back and change 15 other packages to use another directory :(

TIA


Comment 3 Bishop Clark 2001-11-08 18:01:36 UTC
chrismcc:

I hear COL has already begun doing this.  They asked me for help setting it up a short while ago, and they may already have it in use in their apache package.  A 
simple rebuild toward an RH target, and you're done.

Ah, the dream of cross-platform compatibility, infinitely more complex than the unrealized cross-DISTRO compatibility...