mod_macro 1.1.7

mod_macro is a third-party module to the Apache Http Server, distributed with a BSD-style license like Apache.
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.

last updated on:
May 8th, 2006, 19:54 GMT
price:
FREE!
homepage:
www.coelho.net
license type:
BSD License 
developed by:
Fabien Coelho
category:
ROOT \ Internet \ HTTP (WWW)
mod_macro
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT