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>