diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apache/mod_macro/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apache/mod_macro/files')
-rw-r--r-- | www-apache/mod_macro/files/00_example.conf | 26 | ||||
-rw-r--r-- | www-apache/mod_macro/files/27_mod_macro.conf | 6 |
2 files changed, 32 insertions, 0 deletions
diff --git a/www-apache/mod_macro/files/00_example.conf b/www-apache/mod_macro/files/00_example.conf new file mode 100644 index 000000000000..5b60e92ca830 --- /dev/null +++ b/www-apache/mod_macro/files/00_example.conf @@ -0,0 +1,26 @@ +# Definition of a MyVirtualHost Macro. +<Macro MyVirtualHost $host $port $dir> + Listen $port + + <VirtualHost $host:$port> + DocumentRoot $dir + + <Directory $dir> + # do something here... + </Directory> + + # limit access to intranet subdir. + <Directory $dir/intranet> + order deny,allow + deny from all + allow from 10.0.0.0/8 + </Directory> + </VirtualHost> +</Macro> + +# Use of MyVirtualHost with different arguments. +#Use MyVirtualHost www.apache.org 80 /projects/apache/web +#Use MyVirtualHost www.perl.com 8080 /projects/perl/web +#Use MyVirtualHost www.ensmp.fr 1234 /projects/mines/web + +# vim: ts=4 filetype=apache diff --git a/www-apache/mod_macro/files/27_mod_macro.conf b/www-apache/mod_macro/files/27_mod_macro.conf new file mode 100644 index 000000000000..67ce8e4d2688 --- /dev/null +++ b/www-apache/mod_macro/files/27_mod_macro.conf @@ -0,0 +1,6 @@ +<IfDefine MACRO> +LoadModule macro_module modules/mod_macro.so +Include /etc/apache2/macros.d/*.conf +</IfDefine> + +# vim: ts=4 filetype=apache |