SSL + Passenger

430 views
Skip to first unread message

Song Song

unread,
Sep 23, 2008, 6:17:08 PM9/23/08
to Phusion Passenger Discussions
Hi!

Are there any particular steps that need to be taken when installing
SSL on apache with Passenger?

I am running Ubuntu Hardy 8.04 and so far its not working, I keep on
getting the message

caught SIGWINCH, shutting down gracefully in the error.log file

My virtualhosts configuration looks like the following:

<directory "mysitedirectory">
AllowOverride None
Order allow,deny
Allow from all
</directory>

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
ServerName test.local
RailsEnv development
DocumentRoot mysitedirectory
</VirtualHost>

<VirtualHost *:443>
ServerName test.local
DocumentRoot \mysitedirectory\
SSLEngine on
SSLOptions +StrictRequire
SSLCertificateFile /etc/apache2/extra/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/extra/ssl/server.key
</VirtualHost>

Jeffrey Lee

unread,
Sep 23, 2008, 7:48:37 PM9/23/08
to phusion-...@googlegroups.com
Hmm, I have this working fine on CentOS 5.1:

<VirtualHost *:80>
        RailsEnv production
        PassengerRuby /opt/ruby-enterprise-1.8.6-20080810/bin/ruby
        ServerName www.domain.com

        DocumentRoot /var/www/rails/appname/public/
        ErrorLog /var/www/rails/appname/log/apache.log

        <Directory /var/www/rails/appname/public/>
                Options ExecCGI FollowSymLinks
                AddHandler cgi-script .cgi
                AllowOverride all

                Order allow,deny
                Allow from all
        </Directory>
        RewriteEngine On
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=permanent]
</VirtualHost>

# SSL Hosts
<VirtualHost *:443>
        RailsEnv production
        PassengerRuby /opt/ruby-enterprise-1.8.6-20080810/bin/ruby
        ServerName www.domain.com

        SSLEngine on
        SSLCertificateFile /etc/pki/tls/certs/appname.crt
        SSLCertificateKeyFile /etc/pki/tls/private/appname.key
        SSLCertificateChainFile /etc/pki/tls/certs/CompanyIssuingCA1.crt
        SSLProtocol all -SSLv2

        DocumentRoot /var/www/rails/appname/public/
        ErrorLog /var/www/rails/ccell/log/apache.log

        <Directory /var/www/rails/appname/public/>
                Options ExecCGI FollowSymLinks
                AddHandler cgi-script .cgi
                AllowOverride all

                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
Reply all
Reply to author
Forward
0 new messages