Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them.

Is there a possibility to install a plugin that brings me the support for that?

greetings

share|improve this question
1  
I think it would be a better idea to ask this on serverfault.com or superuser.com as you would probably find better/faster answers there –  Dan Dec 10 '12 at 0:03
add comment

4 Answers 4

up vote 2 down vote accepted

You can use HTML5 websockets with the latest stable Nginx installed, to easily install it use the repositories:

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx

Remember, you have to remove your old nginx, nginx-common and nginx-full packages before installing the new version.

I've already tested proxying websockets ( using socket.io ) on Nginx 1.4.1 and it works fine.

share|improve this answer
add comment

I do not think there are any nginx modules that add support for websockets. However the nginx roadmap indicates that version 1.3 will have support for them.

share|improve this answer
add comment

From what I understand there are a number of pieces involved beyond just the web server (nginx), but "support for proxying of WebSocket connections" in nginx was released in v1.4.0.

More Info:

http://nginx.org/

http://nginx.org/en/CHANGES

http://nginx.org/en/docs/http/websocket.html

share|improve this answer
add comment

It is not that difficult. You can find more information here. Posted that couple days ago.

share|improve this answer
1  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Eliah Kagan Dec 19 '12 at 6:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.