Skip to content

Instantly share code, notes, and snippets.

@tpsrep0rts
Created February 3, 2016 19:39
Show Gist options
  • Save tpsrep0rts/1bc996cacbb40e165af7 to your computer and use it in GitHub Desktop.
Save tpsrep0rts/1bc996cacbb40e165af7 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName localhost
ServerAlias localhost
RewriteEngine on
RewriteRule "^/origami/(.*)$" "http://localhost:9000/$1" [P,L]
RewriteRule "^/$" "http://localhost:9000/" [P,L]
RewriteRule "^/(.*\.html)$" "http://localhost:9000/$1" [P,L]
RewriteRule "^/(.*\.css)$" "http://localhost:9000/$1" [P,L]
RewriteRule "^/(.*\.js)$" "http://localhost:9000/$1" [P,L]
RewriteRule "^/(.*\.json)$" "http://localhost:3000/$1" [P,L]
RewriteRule "^/(.*)$" "http://localhost:3000/$1" [P,L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment