2013-12-23 3 views
3

SSL 인증서를 설치 한 후 간단한 "무언가가 잘못되었습니다"대신 프로덕션에서 확장 된 개발 스타일 오류가 표시됩니다. 나는 Varnish 앞에서 Apache와 Varnish와 Apache를 SSL 터미네이터로 사용한다. 이것은 나의 가상 호스트 파일입니다.SSL 설치 후 프로덕션 모드에서 레일스 개발 스타일 오류가 표시됩니다.

<VirtualHost *:443> 
    ServerName my.domain 
    ServerAlias www.my.domain 
    SSLEngine On 
    SSLProtocol all -SSLv2 
    SSLCertificateFile /path/mydomain.crt 
    SSLCertificateKeyFile /path/mydomain.key 
    SSLCertificateChainFile /path/mydomain.ca-bundle 

    ProxyRequests  Off 
    ProxyPreserveHost On 
    ProxyPass   /  http://localhost:80/ 
    ProxyPassReverse /  http://localhost:80/ 
    RequestHeader set X-Forwarded-Proto 'https' 
    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM 
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown 

    DocumentRoot /path/to/public 
    <Directory /path/to/public> 
     Allow from all 
     Options -MultiViews 
    </Directory> 
</VirtualHost> 

답변

1

해결 방법은 다음과 같습니다. here helped. 그래도 문제는 무엇인지 이해하지 못합니다. 이니셜 라이저에서

:

class ActionDispatch::Request 
    def local? 
    false 
    end 
end