htmlフィルター
httpd.conf
# JSPコメントやSmartyコメントを除去するフィルターの定義
ExtFilterDefine cutjspcomment \
mode=output intype=text/html \
cmd="/etc/httpd/conf/delimiter-cut.sh jsp"
ExtFilterDefine cutsmartycomment \
mode=output intype=text/html \
cmd="/etc/httpd/conf/delimiter-cut.sh smarty"
# デザインファイルの設置場所を/public/パスで公開する
Alias /public/ "/srv/work/"
<Directory "/srv/work">
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
# キャッシュさせない
FileETag None
# index.html がある場合でもディレクトリツリーを表示する
DirectoryIndex nothing.html
# JSPファイルやSmartyテンプレートもHTMLファイルとして表示
AddType text/html .jsp
AddType text/html .tpl
# JSPコメントやSmartyコメントを除去する(フィルターの適用)
AddOutputFilter cutjspcomment jsp
AddOutputFilter cutsmartycomment tpl
</Directory>
---
update at 2018/03/02 22:04:51
※注:当サイトは特定環境において確認できた事象のみを記述しています。他の環境での動作は一切保証しません。