Projects / mod_layout

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
Licenses

Recent releases

  •  07 Jan 2008 07:38

    Release Notes: 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.

    •  10 Apr 2007 19:21

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

      •  23 Mar 2007 20:53

        Release Notes: 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.

        •  22 Feb 2007 06:15

          Release Notes: This release adds support for Apache 2.2.

          •  22 Feb 2007 01:50

            Release Notes: 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.

            Recent comments

            23 Jun 2005 12:57 mttrhll

            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.

            04 Nov 2002 17:29 dananderson

            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>

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.