Skip to content

Instantly share code, notes, and snippets.

@stampycode
Last active February 23, 2016 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stampycode/5251177e9c24fbc21a34 to your computer and use it in GitHub Desktop.
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.
<IfModule mod_perl>
<Perl>
foreach $file (glob '/data/*/httpd.conf') {
push @Include, $file;
}
</Perl>
</IfModule>
@stampycode
Copy link
Author

This is a httpd config file for auto-including other httpd 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 the httpd config files dir.
Just put the new conf file at /data/myProject/httpd.conf and enter sudo service httpd reload to reload the config for the running server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment