Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
I think it would be a better idea to ask this on or as you would probably find better/faster answers there – Dan Dec 10 '12 at 0:03
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 ) on Nginx 1.4.1 and it works fine.

share|improve this answer

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

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:

share|improve this answer

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

share|improve this answer
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

Your Answer


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.