mod_macro 1.1.7 review
Downloadmod_macro is a third-party module to the Apache Http Server, distributed with a BSD-style license like Apache. mod_macro allows th
|
|
mod_macro is a third-party module to the Apache Http Server, distributed with a BSD-style license like Apache.
mod_macro allows the definition and use of macros within apache runtime configuration files. The syntax is a natural extension to apache html-like configuration style.
Examples
Here is a sample use of mod_macro within a configuration file:
## Define a VHost Macro.
< Macro VHost $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 VHost with different arguments.
Use VHost www.apache.org 80 /projects/apache/web
Use VHost www.perl.com 8080 /projects/perl/web
Use VHost www.ensmp.fr 1234 /projects/mines/web
## Done.
Requirements:
Apache 1.3, 2.x
What's New in This Release:
port to apache 2.2.
Macro directives are handled while reading the configuration file.
A few casts to avoid warnings.
mod_macro 1.1.7 keywords