Apache 2.2.x modules with FreePascal (Win32) Apache 2.2 module mod_macro. Contents Summary mod_macro is a third-party module to the Apache Http Server, distributed with a BSD-style license like Apache. It allows the definition and use of macros (configuration templates) 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 for repetitive configurations <Macro VHost $host $port $dir> Listen $port <VirtualHost *:$port> ServerName $host DocumentRoot $dir <Directory $dir> # do something here... A simple example is presented in issue 144 of Apache Week. Another example shows how to simplify mod_perl configuration with mod_macro.
Some promotion by Jim Jagielski at ApacheCon reported on Trouble Shooters by Steve Litt. A blog post by Patrick Allaert who noted that the macro definition does not need to be perfectly nested. Another blog post by Mads Sülau Jørgensen presents the module. Benefits Documentation License. Mod_rewrite. Available Languages: en | fr Summary The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly. By default, mod_rewrite maps a URL to a filesystem path. However, it can also be used to redirect one URL to another URL, or to invoke an internal proxy fetch. mod_rewrite provides a flexible and powerful way to manipulate URLs using an unlimited number of rules.
Mod_rewrite operates on the full URL path, including the path-info section. Further details, discussion, and examples, are provided in the detailed mod_rewrite documentation. Logging mod_rewrite offers detailed logging of its actions at the trace1 to trace8 log levels. Using a high trace log level for mod_rewrite will slow down your Apache HTTP Server dramatically! Example LogLevel alert rewrite:trace3 RewriteLog Those familiar with earlier versions of mod_rewrite will no doubt be looking for the RewriteLog and RewriteLogLevel directives. Example: txt rnd dbm. Module Index. Project Details for Apache HTTP Server. Apache Traffic Server.