WebSocket is closed before the connection is established
I am using serverpilot (nginx as reverse proxy in front of apache) and I am getting an error connecting to the websocket.

```
VM1453:161 
WebSocket: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
WebSocket opening handshake timed out
WebSocket is closed before the connection is established.
```
I'm bypassing Apache so it is a LEMP stack. (Thought it might be easier to configure.) Here is what I am using for my nginx config.
```
location / {
    proxy_pass http://site.com:8892/;
}
    location /proxy {
        proxy_pass ​http://site.com:8892;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 86400;
    }
```