Apache Haus Distribution of mod_layout/5.1

Read Me File for the Apache Haus Distribution of mod_layout 5.1
Date: July 26, 2010
Application: mod_layout/5.1
Distribution File: mod_layout-5.1_x64.zip
Original source by: Brian Aker
Original Home: http://tangent.org/
   
Win32 binary by: The Apache Haus
Mail: info@apachehaus.com
Home: http://www.apachehaus.com
   
** This build for Apache 2.2.x only! **
Supported Windows Versions:
   
Windows Server 2003 x64 Assumed to work
Windows Vista x64 Assumed to work
Windows 7 x64 Tested
Windows Server 2008 32 bit Assumed to work
Windows Server 2008 64 bit Assumed to work
Windows Server 2008 R2 Assumed to work

Package Contents:

readme_first.html [this file]
ChangeLog
INSTALL
LICENSE
mod_bw.so
README


First time installation

NOTES:

The module is built with Visual Studio 2008, be sure to install the new Visual C++ 2008 Redistributable Package
it can be downloaded from;

http://www.microsoft.com/downloads/details.aspx?familyid=BD2A6171-E2D6-4230-B809-9A8D7548C1B6&displaylang=en


INTRODUCTION

This module will provide you with a way to add footers and headers to all (or a subset) of the content that your site provides. With it you can also define your own tagging language.


If this is your first install of mod_layout:

To install this module on your Apache 2.2.x server you need to copy the necessary files to your Apache folder and add items to your Apache's httpd.conf file. C:\Apache22 will be used as our ServerRoot for the examples below.

1. Install the Visual C++ 2008 Redistributable Package
    Download, if you have not done so already, from the
    address above.

2. Copy mod_bw.so to your Apache 2.2.x modules folder
    C:/apache22/modules/mod_layout.so for example

3. Load the module in your http.conf loadmodules section
LoadModule layout_module modules/mod_layout.so

Sample Configuration:

<VirtualHost www.example.com> AddOutputFilterByType LAYOUT text/html LayoutFooter /footer.html LayoutHeader /header.html </VirtualHost>

The LayoutFooter directive can also be a cgi (aka putting in "LayoutFooter /cgi-bin/printenv" would happily append the environmental variables to the end of all of the output for your site).

If you want to cut down on processing the following will also work:

<VirtualHost www.example.com> AddOutputFilterByType LAYOUT text/html LayoutFooter "<P> This is the tail end of things<P>" LayoutHeader "<P> This is the beginning of things<P>" </VirtualHost> The following is an example which will wrap PHP along with html documents.   <VirtualHost www.example.com> AddOutputFilterByType LAYOUT text/html LayoutFooter /footer.html LayoutHeader "<P> This is the beginning of things<P>" </VirtualHost>