Guys,
I hope you can help me. Im trying to set a ws:// for websocket on nginx.
I added this line on .conf
location /home/wwwroot/websocket/phpwebsocket-master/ {
proxy_pass http://domain.com:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
But when i restart nginx im getting this error
nginx: [emerg] unknown directive "proxy_http_version" in /usr/local/nginx/conf/vhost/domain.com.conf:19
Any ideas?
Do im in a right track for setting up ws://domain:8080/websocket/phpwebsocket-master/chatbot.demo.php
Thanks in advance,
Mike