ローカル開発環境もpassengerで。

# /etc/apache2/sites-available/cloister
<VirtualHost *:80>
  ServerName cloister
  DocumentRoot /var/www/cloister
  CustomLog /var/log/apache2/cloister-access.log combined
  ErrorLog /var/log/apache2/cloister-error.log
  RailsEnv development
  RailsBaseURI /
</VirtualHost>

<VirtualHost *:443>
  ServerName cloister
  DocumentRoot /var/www/cloister
  CustomLog /var/log/apache2/cloister-ssl-access.log combined
  ErrorLog /var/log/apache2/cloister-ssl-error.log
  RailsEnv development
  RailsBaseURI /

  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
  SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
</VirtualHost>

SSLもテストできるし、なんでもっと早くやらなかったんだろう。後悔・・・。

Comments


Option