I am trying to get a websocket client connected to my server with a ssl connection. I want to reach it with www.myurl.com/socket/ (subdomains would also be an option) and the websocket server is running on port 7777. As the server is running Plesk I need to do the configuration in the Plesk Interface.
What I just tried is to place my configuration here:
Apache & nginx Settings for myurl | Additional nginx directives
My config is as follows:
location /socket/ {
proxy_pass "http://127.0.0.1:7777";
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
I don't get any connection established. It worked without des proxy_pass on non secured connection.
Did I place the config wrong or any other hint what the problem could be? It would also help me if there are useful methods or tools to analyze where the error is.