今天给apache安装了一个新mod:mod_layout,它的作用是你们网页,加入东西,可以是一个html文件,也可是一段html代码!我使用它的一个目的是给全站加入google统计代码,这样就不用一页一页的修改了!
2011-11-17 16:35:51
下载地址“http://www.musc.edu/webserver/mod_layout.html”
现在最新版本是:5.1
安装方法,解开包后,用export命令把/usr/local/apache2/bin 加到你 PATH变量里
然后,
make
make install
就ok了!
在httpd.conf里这样设置一下就好了!
<Virtualhost www.abc.com>
AddOutputFilterByType LAYOUT text/html
LayoutFooter /footer.html
LayoutHeader /header.html
</virtualhost>
很强大!
First, make sure Apache 2.0 is in your path (probably means
adding /usr/local/apache2/bin to your PATH).
The type:
make
And then:
make install
Really, that is all there is to it. You just now need to add
the directives that you need.