The SSL is enabled. When I try without HttpsFilter to browse the needed page by HTTPS everything is fine. But the page is still accessible by HTTP too, which is not my purpose.
Code is not from Yii framework, but you can easy modify to use Yii global parameters(Yii::app()->params[‘isProduction’]), nand environmental variables/requests.