Skip to content

Instantly share code, notes, and snippets.

@leepowelldev
Created August 23, 2011 09:53
Show Gist options
  • Save leepowelldev/1164762 to your computer and use it in GitHub Desktop.
Save leepowelldev/1164762 to your computer and use it in GitHub Desktop.
Node.js Apache Virtual Host Proxy
<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>
@leepowelldev
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment