Apache SSL Configuration

October 15, 2008


Chevrolet Apache

Little example config for SSL on a server running mod_rails (passenger).

  <virtualhost 222.111.143.223:443>
    ServerName www.website.co.uk
    DocumentRoot /var/www/apps/website/current/public
    RailsEnv production
    SSLEngine On
    SSLCertificateFile /etc/apache2/certs/website.crt
    SSLCertificateKeyFile /etc/apache2/certs/website.key
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
  </virtualhost>