Skip to content

Instantly share code, notes, and snippets.

@devsigner
Forked from nhocki/gist:1164315
Created October 27, 2012 15:40
Show Gist options
  • Save devsigner/3965107 to your computer and use it in GitHub Desktop.
Save devsigner/3965107 to your computer and use it in GitHub Desktop.
Reverse proxy for passenger in apache server
# In the apps root directory run
# http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/
# passenger start -a localhost -p 3000 -e production -d
<VirtualHost *:80>
ServerName ranking.timehub.net
DocumentRoot /the/path/to/the/app/public
PassengerEnabled off
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
<Directory /the/path/to/the/app/public>
AllowOverride all
Options -MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment