Created
February 26, 2015 17:09
-
-
Save strikeout/cfa3c6d009e85a0c78d0 to your computer and use it in GitHub Desktop.
Apache vhost config for Meteor with working websockets
This file contains hidden or 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 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