Created
May 12, 2014 04:43
-
-
Save PandaEox/d21c516af154834f6ea2 to your computer and use it in GitHub Desktop.
Node through apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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