Following are the step to install Mod_layout for apache.
wget
http://fresh.t-systems-sfr.com/unix/src/...3.2.tar.gz
tar -zxvf mod_layout-3.2.tar.gz
cd mod_layout-3.2
mv Makefile.STATIC Makefile
It will ask if you want to overwite, press y and enter
pico -w Makefile
The Makefile (and not Makefile.STATIC) would have to be edited to have path to apxs defined everywhere. for example, if it's /usr/local/apache/bin, then the top portion of makefile wouild look like this:
APXS=/usr/local/apache/bin/apxs
APACHECTL=/usr/local/apache/bin/apachectl
CC=`/usr/local/apache/bin/apxs -q CC`
INC=-I`/usr/local/apache/bin/apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
LD_SHLIB=`apxs -q LDFLAGS_SHLIB`
VERSION = 3.2
DISTNAME = mod_layout
DISTVNAME = $(DISTNAME)-$(VERSION)
Then just type
make
make install
Restart httpd
service httpd configtest
service httpd restart
You can force ads in header or footer on any site. You just would have to create a file containing your ads and save it as somead.html in say /usr/local/apache/htdocs
Then do the addition within the <VirtualHost> </VirtualHost> section of the given site in the httpd.conf file.
example of having a footer ad on a given site is:
<IfModule mod_layout.c>
LayoutFooter "/usr/local/apache/htdocs/someadfooter.html"
LayoutHeader "/usr/local/apache/htdocs/someadheader.html"
</IfModule>
Then all the pages on the given site would carry footer ads containing whatever you put up in the someadfooter.html file.