symfony #contents
!注意事項 *filter.ymlの以下のディレクティブはファイルの先頭に置かないといけなかった。(他の設定との影響?) [#zb7f06db]
sfSslRequirement:
class: sfSslRequirementFilter
rendering: ~ security: ~ # insert your own filters here cache: ~ common: ~ execution: ~
!1.1の変更点 *require_sslの書式が変わっています。 [#de518ec8] all:
sslAction: require_ssl: true
!インストール cd /プロジェクト/ symfony plugin-install http://plugins.symfony-project.com/sfSslRequirementPlugin » dir+ /プロジェクト/plugins/.channels/.alias » dir+ /プロジェクト/…hannel.pear.symfony-project.com » plugin installing plugin “http://plugi...ect.com/sfSslRequirementPlugin ” » pear downloading sfSslRequirementPlugin-1.1.1.tgz … » pear Starting to download sfSslRequirementPlugin-1.1.1.tgz (2,784 » pear bytes) » pear ….done: 2,784 bytes » pear WARNING: channel “pear.symfony-project.com” has updated its » pear protocols, use “channel-update pear.symfony-project.com” to » pear update » pear install ok: » pear channel://pear.symfony-project.com/sfSslRequirementPlugin-1.1.1
*実際のリライトは、URLの先頭4文字をsubstringしてるだけなので、ポート指定など(hoge:8080など)だとうまくリダイレクトできない。 [#m38301b7] ↑バージョン2.0.0で対応しているらしい(動作検証時は1.2.1)んが!2.0.0のtgzファイルが空(;_;) sfSslRequirementActionMixin.class.php return substr_replace($action→getRequest()→getUri(), 'https', 0, 4); return substr_replace($action→getRequest()→getUri(), 'http', 0, 5); ↑サーバ名ごと変更してやるようにすればうまくいくのでは。
トレース: » xrea » iis » 禁煙 » 電子回路 » pic開発環境 » eclipse3.4 » フィットネス » サブドメイン » mediawikiのインストール » ssl