Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Virtual Host Definition for use with Passenger

alcy edited this page Sep 13, 2010 · 6 revisions

To avoid possible conflicts with existing virtual hosts or services running in Apache(for eg., if you don’t want to disable the default site for use by other apps like collectd-apache), you might want to modify the virtual host definition as generated by visage, in the following way:


RackAutoDetect Off
RailsAutoDetect Off

#Use an available port on your machine. I am using port number 9000
Listen 9000

<VirtualHost *:9000>
#Set the document root according to your setup and appropriate version numbers

DocumentRoot /var/lib/gems/1.8/gems/visage-app-x.×.x/lib/visage/public/
RackBaseURI /
<Directory /var/lib/gems/1.8/gems/visage-app-x.×.x/lib/visage/>
Options None
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>


Now http://localhost:9000 should have Visage running.