Skip to content

Instantly share code, notes, and snippets.

@nhocki
Created August 23, 2011 03:59
Show Gist options
  • Save nhocki/1164315 to your computer and use it in GitHub Desktop.
Save nhocki/1164315 to your computer and use it in GitHub Desktop.
Reverse proxy for passenger in apache server
# In the apps root directory run
# 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