mod_layout

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

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  06 Jan 2008 23:38
  • Rrelease-after

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.

  • Rrelease-mid
  •  10 Apr 2007 12:21
  • Rrelease-after

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

  • Rrelease-mid
  •  23 Mar 2007 12:53
  • Rrelease-after

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.

  • Rrelease-mid
  •  21 Feb 2007 17:50
  • Rrelease-after

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.

Rss Recent comments

Rcomment-before 23 Jun 2005 12:57 Rcomment-trans mttrhll Rcomment-after

to 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.

Rcomment-before 04 Nov 2002 17:29 Rcomment-trans dananderson Rcomment-after

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>

F1be0e60e70a1c38560f6b44ef69c2e6_thumb

Project Spotlight

abby

A front-end for the cclive utility.

4f0b502e7fc1dbf6c111371857c28069_thumb

Project Spotlight

Arkeia Network Backup

Enterprise-class network backup for heterogeneous networks.