Skip to content

Instantly share code, notes, and snippets.

@mrtnpro
Created May 18, 2015 15:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtnpro/85e2673a77c1836aa9c5 to your computer and use it in GitHub Desktop.
Save mrtnpro/85e2673a77c1836aa9c5 to your computer and use it in GitHub Desktop.
VirtualHostX Custom Directives config for Rails apps
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:3000/%{REQUEST_URI} [P,QSA]
<Proxy *>
Allow from all
</Proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment