diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2005-03-02 06:55:50 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2005-03-02 06:55:50 +0000 |
commit | 8046d6a5dff20b3af9c6582a649ff7268cb82042 (patch) | |
tree | 56b034b5e74b0c09381773e7c7ba30eccc144652 /www-apache/mod_macro/files | |
parent | added apache 1.3 support (diff) | |
download | historical-8046d6a5dff20b3af9c6582a649ff7268cb82042.tar.gz historical-8046d6a5dff20b3af9c6582a649ff7268cb82042.tar.bz2 historical-8046d6a5dff20b3af9c6582a649ff7268cb82042.zip |
added default config
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'www-apache/mod_macro/files')
-rw-r--r-- | www-apache/mod_macro/files/27_mod_macro.conf | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/www-apache/mod_macro/files/27_mod_macro.conf b/www-apache/mod_macro/files/27_mod_macro.conf index 4e640c9ff351..4b845617469b 100644 --- a/www-apache/mod_macro/files/27_mod_macro.conf +++ b/www-apache/mod_macro/files/27_mod_macro.conf @@ -1,12 +1,34 @@ <IfDefine MACRO> - <IfModule !mod_macro.c> - LoadModule macro_module modules/mod_macro.so - </IfModule> + <IfModule !mod_macro.c> + LoadModule macro_module modules/mod_macro.so + </IfModule> </IfDefine> <IfModule mod_macro.c> + # Definition of a MyVirtualHost Macro. -# See http://www.coelho.net/mod_macro/ for now :/ - + <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 </IfModule> |