Skip to content

Instantly share code, notes, and snippets.

@strikeout
Created February 26, 2015 17:09
Show Gist options
  • Save strikeout/cfa3c6d009e85a0c78d0 to your computer and use it in GitHub Desktop.
Save strikeout/cfa3c6d009e85a0c78d0 to your computer and use it in GitHub Desktop.
Apache vhost config for Meteor with working websockets
<VirtualHost 10.248.206.19:80>
ServerName some.domain.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# this is important, change the port to what meteor is listening on
ProxyPassMatch ^/sockjs/(.*)/websocket ws://localhost:58080/sockjs/$1/websocket
ProxyPass / http://localhost:58080/
ProxyPassReverse / http://localhost:58080/
ErrorLog "/var/log/apache2/meteor-error.log"
CustomLog "/var/log/apache2/meteor-access.log" combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment