Welcome! Log In Create A New Profile

Advanced

websocket

Posted by gigamike 
websocket
October 03, 2013 12:49AM
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
Re: websocket
October 21, 2013 03:24PM
What version of nginx are you running?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready