You'll most probably want to use Passenger Standalone for development.
- install apache
sudo apt-get install ruby1.8-devsudo gem install passengersudo passenger-install-apache2-module- follow the instructions
Manually: configure a vhost in /etc/apache2/sites-available and link it to /etc/apache2/sites-enabled with something like the following
^
NameVirtualHost *:80
<VirtualHost *:80>
ServerName application.local
DocumentRoot /opt/application/public
RailsEnv development
RailsAllowModRewrite off
</VirtualHost>
<VirtualHost *:443>
ServerName application.local
DocumentRoot /opt/application/public
RailsEnv development
RailsAllowModRewrite off
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/localhost.crt
SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>
- register the host in
/etc/hostsor just connect tohttp://localhost/ - restart Apache or call
touch tmp/restart.txtin your project root
SSL
- link
/etc/apache2/mods-available/ssl.loadand/etc/apache2/mods-available/ssl.confinto/etc/apache2/mods-enabledusingsudo a2enmod ssl - activate SSL in the vhost (like above)
- see this guide on how to self-sign an ssl certificate Show archive.org snapshot
Posted by Lexy to makandra dev (2010-08-25 12:42)