mod_macro

mod_macro is a third-party module to the Apache Http Server, distributed with a BSD-style license like Apache.
Download

mod_macro Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Fabien Coelho
  • Publisher web site:
  • http://www.coelho.net/mod_macro/

mod_macro Tags


mod_macro Description

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.ExamplesHere 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/webUse VHost www.perl.com 8080 /projects/perl/webUse VHost www.ensmp.fr 1234 /projects/mines/web## Done.Requirements:· Apache 1.3, 2.xWhat'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 Related Software