#author("2020-01-31T00:06:33+09:00","","")
* デフォルトの .htaccess を Apache 2.4 向けの設定に変更する [#r8b976c1]

- ページ: [[BugTrack]]
- 投稿者: [[umorigu]]
- 優先順位: 普通
- 状態: 提案
- カテゴリー: その他
- 投稿日: 2020-01-31 (金) 00:06:33
- バージョン: 1.5.2

** メッセージ [#pa9dc75b]
デフォルトで含まれている .htaccess のアクセス制御設定が Apache 2.2 向けの設定になっている。

例 (skin/.htaccess):

 <FilesMatch "\.(skin\.php)$">
         Order allow,deny
         Deny from all
 </FilesMatch>

これを Apache 2.4 での設定に変更する

例: (skin/.htacces):
 <FilesMatch "\.(skin\.php)$">
         Require all denied
 </FilesMatch>

Apache 2.4 でも mod_access_compat モジュールが有効な環境では2.2の記述でも動作する。
であるが、 mod_access_compat は非推奨であり、
また Apache 2.2 自体が 2017年12月にサポート切れになっていることから、
デフォルトは Apache 2.4 のものに変更するべきである。

http:// httpd.apache.org/#apache-httpd-22-end-of-life-2018-01-01
Apache httpd 2.2 End-of-Life 2018-01-01

As previously announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases.

The Apache HTTP Server Project had long committed to provide maintenance releases of the 2.2.x flavor through June of 2017. The final release 2.2.34 was published in July 2017, and no further evaluation of bug reports or security risks will be considered or published for 2.2.x releases.


mod_access_compat - Apache HTTP サーバ バージョン 2.4
https:// httpd.apache.org/docs/2.4/ja/mod/mod_access_compat.html

--------

#comment



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 8.2.12. HTML convert time: 0.063 sec.

SourceForge