Skip to content

Instantly share code, notes, and snippets.

@drewlesueur
Created November 8, 2010 19:46
Show Gist options
  • Select an option

  • Save drewlesueur/668159 to your computer and use it in GitHub Desktop.

Select an option

Save drewlesueur/668159 to your computer and use it in GitHub Desktop.
Hook up node.js with apache.
#hook up node.js with apache so you can have an apache site on port 80
# and a node.js server running on port 80
# you may need to `a2enmod proxy` and `a2enmod proxy_http`
<VirtualHost *:80>
ServerName severus.the.tl
ProxyPass / http://127.0.0.1:86/
# CustomLog /var/log/apache2/lazeroids-node-access.log combined
# ErrorLog /var/log/apache2/lazeroids-node-error.log
# NoCache *
<Proxy *>
Allow from all
</Proxy>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment