Last active
February 23, 2016 16:23
-
-
Save stampycode/5251177e9c24fbc21a34 to your computer and use it in GitHub Desktop.
A httpd config file for auto-including other httpd config files from a wildcard directory path.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_perl> | |
<Perl> | |
foreach $file (glob '/data/*/httpd.conf') { | |
push @Include, $file; | |
} | |
</Perl> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a
httpd
config file for auto-including otherhttpd
config files from a wildcard directory path.This enables new projects to be created in /data without having to manually deploy new
httpd
config files to thehttpd
config files dir.Just put the new conf file at
/data/myProject/httpd.conf
and entersudo service httpd reload
to reload the config for the running server.