mod_layout is an Apache module that provides both a Footer and Header directive to automagically include output from other URIs at the beginning and ending of a Web page. It can be used to wrap documents for a standard look and feel for a site (or to insert banners on any given document in a site). Currently known to support mod_perl, PHP and Apache JServ. Should support just about any type of handler.
| Tags | Internet Web HTTP Servers |
|---|---|
| Licenses | BSD Original |
Recent releases


Changes: Duplicating page bugs were fixed. Dead code was removed. The style was cleaned up. The README was updated with a proper example for version 5.1.


Changes: A minor fix in the directive documentation. A crash in the page boundary condition has been fixed.


Changes: A dangling pointer when compiled in debug mode has been fixed. The Makefile has been fixed to correctly use APXS (multiple Apache instances can be installed at compile time). Some other changes have been made over the years. LICENSE has been updated to the current Apache license.


Changes: This release adds support for Apache 2.2.


Changes: LICENSE has been updated to the Apache 2.0 license. The code has been cleaned up to be a bit more readable. A bug in the main parser loop that would lose data in some cases has been fixed. The need for the APR compat library has been removed.
- All comments
Recent commentsto compile on redhat enterprise 3
I thought this may be helpful. For use on RHEL ES 3 do the following:
-make sure you have httpd-devel (gives you apxs, apr-config, etc...)
-download source tarball (I used 4.02a) and extract it, then cd into the new directory.
-change the following in the Makefile:
top_srcdir=/usr/lib/httpd
top_builddir=/usr/lib/httpd
include /usr/lib/httpd/build/special.mk
-Follow the instructions in the INSTALL file.
fin.
Brief howto on mod_layout
0. Download. The version for Apache 1.x differs from 2.x.
1. Read the README and INSTALL files.
2. If you don't have apache in /usr/local/apache2, modify file Makefile.
3. Make sure apxs is in your path (use which apxs)
4. Type: make
5. As root, type make install
6. Restart Apache: /etc/init.d/httpd restart
7. Sample configuration lines:
<Directory /usr/local/apache/htdocs/dan/docs>
AllowOverride All
# mod_layout:
AddOutputFilter LAYOUT html
AddOutputFilter LAYOUT shtml
AddOutputFilter LAYOUT htm
AddOutputFilter LAYOUT php
LayoutHeader /docs/bannerad.h
#LayoutFooter /docs/bannerad.h
IndexIgnore bannerad.h
</Directory>