Darko Fabijan wrote this on September 14, 2009
Running a Rails app on Passenger on a different port
We spent a lot of time doing pair sysadmining today. Yes, that’s the new thing you should be practicing. Here’s one tip, hopefully a timesaver for someone. Suppose you want to run your Rails app in staging environment on the same machine, but on different port. There are just two things you need to do apart from the usual. First you need to tell Apache to listen on the particular port that you want to use /etc/apache2/ports.conf
:
Listen 1234
and then of course in the vhost file of your Rails app:
<VirtualHost *:1234>