Bug 45160 - Directory Wildcards for Include Directive
Summary: Directory Wildcards for Include Directive
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 enhancement with 3 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on: 45496
Blocks:
  Show dependency tree
 
Reported: 2008-06-07 21:39 UTC by Max
Modified: 2018-02-25 20:59 UTC (History)
1 user (show)



Attachments
patch to allow globbing on directory names (2.31 KB, patch)
2008-07-30 03:08 UTC, rahul
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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