Bug 45160

Summary: Directory Wildcards for Include Directive
Product: Apache httpd-2 Reporter: Max <maxcantor>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: wes
Priority: P2 Keywords: FixedInTrunk
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Bug Depends on: 45496    
Bug Blocks:    
Attachments: patch to allow globbing on directory names

Description Max 2008-06-07 21:39:41 UTC
Right now, you can use filename wildcards for the Include directive, like so:

Include /home/mcantor/projects/someproject/etc/*.conf

However, it would be Really Cool if you could glob directories as well as files, like so:

Include /home/mcantor/projects/*/etc/*.conf

This would allow seamless additions of new web apps requiring configuration files.
Comment 1 rahul 2008-07-30 03:08:33 UTC
Created attachment 22328 [details]
patch to allow globbing on directory names

It requires the glob matching function apr_match_glob_path from 
https://issues.apache.org/bugzilla/show_bug.cgi?id=45496
Comment 2 Michael Favia 2011-02-11 20:45:30 UTC
Many thanks for this. Need it so that i can have truly portable sites that can be moved from server to server with a child directory structure like:

example.com
-conf
--httpd.conf
-logs
-htdocs

What is the process for proposing this feature for inclusion?
Comment 3 Stefan Fritsch 2011-06-15 22:34:03 UTC
This is implemented in trunk
Comment 4 William A. Rowe Jr. 2011-09-15 14:24:50 UTC
As noted, this is fixed in trunk and is available as 2.3-beta.
Comment 5 Rainer Jung 2018-02-25 20:59:34 UTC
Undo spam change