Skip to content

Instantly share code, notes, and snippets.

@binho
Created March 2, 2013 00:35
Show Gist options
  • Save binho/5069051 to your computer and use it in GitHub Desktop.
Save binho/5069051 to your computer and use it in GitHub Desktop.
rodar nodejs na porta 80 junto com apache
<VirtualHost cabine.la:80>
ServerAdmin contato@cabine.la
ServerName www.cabine.la
ServerAlias cabine.la
DocumentRoot /var/www/cabine
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# redireciona para porta em que nodejs esta rodando
<Location />
ProxyPass http://localhost:8000/
ProxyPassReverse http://localhost:8000/
</Location>
ErrorLog /var/log/cabine_error.log
CustomLog /var/log/cabine_access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment