Skip to content

Instantly share code, notes, and snippets.

@PandaEox
Created May 12, 2014 04:43
Show Gist options
  • Save PandaEox/d21c516af154834f6ea2 to your computer and use it in GitHub Desktop.
Save PandaEox/d21c516af154834f6ea2 to your computer and use it in GitHub Desktop.
Node through apache
FilterDeclare subst
FilterProvider subst SUBSTITUTE resp=Content-Type $text/
FilterProvider subst SUBSTITUTE resp=Content-Type $/xml
FilterProvider subst SUBSTITUTE resp=Content-Type $/json
FilterProvider subst SUBSTITUTE resp=Content-Type $/javascript
<location /node/>
ProxyPass http://localhost:1337/
ProxyPassReverse http://localhost:1337/
ProxyPassReverseCookiePath / /node/
FilterChain subst
Substitute "s|http://localhost:1337/|/node/|i"
</location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment