Apacheのモジュールmod_layoutでHTMLの自動挿入
[root@localhost pki]# yum search mod_layout
読み込んだプラグイン:langpacks, presto, refresh-packagekit
================================= 一致: mod_layout ==================================
mod_line_edit.i686 : A general-purpose filter for text documents
mod_lineが見つかったのでそれをインストール
[root@localhost pki]# yum -y install mod_line_edit.i686
[root@localhost conf]# vi /etc/httpd/conf/httpd.conf
userdirの部分に設定してみます
5行追加します
<Directory /home/*/public_html>
AllowOverride All
Options ExecCGI
AddOutputFilter Includes;line-editor; html php js css txt
SetEnv LineEdit "text/html*"
LERewriteRule <head> "header test.<br><head>" i
LERewriteRule </body> "body test.<br></body>" i
LERewriteRule </html> "<br>footer test.<br></html>" i
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
新規に作成
[root@localhost ~]# vi /home/hopu/public_html/index.html
<html>
<head>
ヘッダー<br>
</head>
<body>
本文<br>
</body>
2<br>
</html>
フッター
http://hopu.local/~hopu とアクセスすると 自動的にテキストが表示されました
★CentOS7 まとめ
★Ubuntu14 まとめ
★Ubuntu12用無線アダプタ紹介
★Ubuntu12 まとめ
★Server 2008R2 まとめ
★SCCM2012R2 まとめ
★Windows10 アップグレード
★Windows7 まとめ
★Windows7 SSD まとめ
★Windows8 まとめ
★EaseUS Todo Backup Server
★Linux Destbision まとめ
★Linuxコマンド関連Index
★Zorin8.1まとめ
★Fedora17まとめ
★Fedora15まとめ
☆VB Script まとめ
★USB3.0で快適バックアップ
★リンク集・メール
・はじめての自宅サーバ構築 - Fedora/CentOS -
SCCM Backup 遠隔操作 VirtualBox FeliCaポート/パソリ ESXi
<%plugin_third_description>
<%plugin_third_content><%plugin_third_description2>