Created
August 23, 2011 09:53
-
-
Save leepowelldev/1164762 to your computer and use it in GitHub Desktop.
Node.js Apache Virtual Host Proxy
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
<VirtualHost *:80> | |
ServerAdmin default | |
ServerName nodejs.localhost | |
ProxyPass / balancer://ourexamplecluster | |
ProxyPassReverse / balancer://ourexamplecluster | |
<proxy balancer://ourexamplecluster ourexamplecluster=""> | |
BalancerMember http://127.0.0.1:8000 | |
</proxy> | |
</virtualhost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting Apache and Node running together on a local environment, use this in as a virtual host, then in hosts file:
nodejs.localhost 127.0.0.1
Restart apache.