Help us understand the problem. What is going on with this article?

AWS 用の Zend_Controller_Request

More than 5 years have passed since last update.

ELB経由だとSSL判定がアレなので上書き。

Proxy.php
<?php
require_once 'Zend/Controller/Request/Http.php';

/**
 * My_Controller_Request_Proxy
 */
class My_Controller_Request_Proxy extends Zend_Controller_Request_Http
{
    /**
     * Is https secure request
     * @return boolean
     */
    public function isSecure()
    {
        return (parent::isSecure()
            || $this->getServer('HTTP_X_FORWARDED_PROTO') === parent::SCHEME_HTTPS);
    }
}

設定はBootstrapとかに書けばいいんじゃないかな。

Bootstrap.php
$frontController->setRequest(new My_Controller_Request_Proxy());
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away