|
1: 2010-05-22 (土) 16:52:01 nao-pon |
| + | #navi |
| + | RIGHT:&rsslink(../); |
| + | #boxdate |
| + | * HypCommonFunc 更新 (Ver. 20100520) X-Sendfile ヘッダ対応など [#g8921636] |
| | | |
| + | RIGHT:&tag(HypCommonFunc,mod_xsendfile,X-Sendfile); |
| + | |
| + | HypCommonFunc を更新して、Ver. 20100520 としました。 |
| + | |
| + | ** 主な更新内容 [#b7470a23] |
| + | |
| + | - PHP からファイル出力する場合にサーバーにできるだけ負荷を掛けないようにできるHTTPヘッダ "X-Sendfile", "X-LIGHTTPD-send-file" に対応した。 |
| + | -- Apache 2系モジュール [[mod_xsendfile>http://tn123.ath.cx/mod_xsendfile/beta/]] と [[lighttpd>http://www.lighttpd.net/]] で使用できます。 |
| + | -- 設定方法 |
| + | --- trust_path/class/hyp_common/config/hyp_common.conf.php にて設定する |
| + | #code(php){{ |
| + | //// Use "X-Sendfile" header? |
| + | // 0:none, 1: Lighttpd < 1.5, 2:Apache 2 (mod_xsendfile) or Lighttpd >= 1.5, |
| + | // 3:Apache 2 (mod_xsendfile with hypweb patch) |
| + | // mod_xsendfile: http://tn123.ath.cx/mod_xsendfile/ |
| + | if (! defined('HYP_X_SENDFILE_MODE')) define('HYP_X_SENDFILE_MODE', 0); |
| + | }} |
| + | -- 注意事項 |
| + | 対応していないサーバーで 0 以外に設定すると、favicon や xpWiki で画像が表示されなくなりますので、ご注意ください。 |
| + | -- 関連エントリー |
| + | --- [[効果絶大! の mod_xsendfile>../2010-05-19]] |
| + | -- HYP_X_SENDFILE_MODE = 3 について |
| + | ~ オリジナルの [[mod_xsendfile>http://tn123.ath.cx/mod_xsendfile/beta/]] では、GZip 圧縮した CSS や JavaScript に対応出来ないので、私が独自に改造し対応できるようにした &ref(nao-pon/blog/2010-05-19/mod_xsendfile.c); を使用する場合に |
| + | ~define('HYP_X_SENDFILE_MODE', 3); |
| + | ~とすることで、GZip 圧縮した CSS や JavaScript も軽く送信されるようになります。 |
| + | - データファイル、設定ファイルの配置を整理し移動しました。 |
| + | -- *.dat ファイルは、trust_path/class/hyp_common/dat ディレクトリに移動しました。 |
| + | -- 任意設定ファイル *.conf.* ファイルは、trust_path/class/hyp_common/config ディレクトリから読み込むようになりました。 |
| + | --- 任意に設定ファイルを追加している方は、trust_path/class/hyp_common/config ディレクトリに移動してください。 |
| + | ---- ただし、次のファイルはファイル名が変更になっていますので、リネームしてください。 |
| + | ----- favicon/conf.php -> config/favicon.conf.php |
| + | ----- favicon/group.hosts -> config/favicon_hostsgroup.dat |
| + | -- 以下のファイルは利用されませんのでサーバーから削除しても問題ありません。 |
| + | --- trust_path/class/hyp_common にある |
| + | ---- hyp_search_engines.dat |
| + | ---- mac_ext.dat |
| + | ---- mac_ext_utf8.dat |
| + | ---- spamsites.dat |
| + | ---- spamwords.dat |
| + | ---- win_ext.dat |
| + | ---- win_ext_utf8.dat |
| + | ---- favicon/conf.php.rename |
| + | ---- favicon/group.def.hosts |
| + | ---- favicon/group.hosts.rename |
| + | ---- preload/spamsites.conf.dat.rename |
| + | ---- preload/spamwords.conf.dat.rename |
| + | |
| + | ** 更新ファイル [#sa8f0c57] |
| + | |
| + | *** html側 (XOOPS_ROOT_PATH/) [#y054a9ec] |
| + | |
| + | - 変更はありません |
| + | |
| + | *** trust側 (XOOPS_TRUST_PATH/class/hyp_common) [#nf302633] |
| + | - [[HypCommonCVS:config/favicon.conf.php.rename]] (1.1) |
| + | - [[HypCommonCVS:config/favicon_hostsgroup.dat.rename]] (1.1) |
| + | - [[HypCommonCVS:config/hyp_common.conf.php.rename]] (1.1) |
| + | - [[HypCommonCVS:config/spamsites.conf.dat.rename]] (1.1) |
| + | - [[HypCommonCVS:config/spamwords.conf.dat.rename]] (1.1) |
| + | - [[HypCommonCVS:dat/favicon_hostsgroup.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/hyp_search_engines.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/mac_ext.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/mac_ext_utf8.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/spamsites.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/spamwords.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/win_ext.dat]] (1.1) |
| + | - [[HypCommonCVS:dat/win_ext_utf8.dat]] (1.1) |
| + | - [[HypCommonCVS:favicon/conf.php.rename]] (1.2) |
| + | - [[HypCommonCVS:favicon/favicon.php]] (1.13) |
| + | - [[HypCommonCVS:favicon/group.def.hosts]] (1.9) |
| + | - [[HypCommonCVS:favicon/group.hosts.rename]] (1.2) |
| + | - [[HypCommonCVS:hyp_common_func.php]] (1.73) |
| + | - [[HypCommonCVS:hyp_get_engine.php]] (1.12) |
| + | - [[HypCommonCVS:hyp_kakasi.php]] (1.5) |
| + | - [[HypCommonCVS:hyp_search_engines.dat]] (1.3) |
| + | - [[HypCommonCVS:mac_ext.dat]] (1.2) |
| + | - [[HypCommonCVS:mac_ext_utf8.dat]] (1.3) |
| + | - [[HypCommonCVS:preload/hyp_preload.php]] (1.75) |
| + | - [[HypCommonCVS:preload/spamsites.conf.dat.rename]] (1.2) |
| + | - [[HypCommonCVS:preload/spamwords.conf.dat.rename]] (1.3) |
| + | - [[HypCommonCVS:spamsites.dat]] (1.41) |
| + | - [[HypCommonCVS:spamwords.dat]] (1.8) |
| + | - [[HypCommonCVS:version.php]] (1.114) |
| + | - [[HypCommonCVS:ways/imgconv.php]] (1.9) |
| + | - [[HypCommonCVS:win_ext.dat]] (1.2) |
| + | - [[HypCommonCVS:win_ext_utf8.dat]] (1.2) |
| + | |
| + | RIGHT:&font(90%){&page_comments;}; |
| + | #navi |