Report this

What is the reason for this report?

Install Nodejs & Websocket & PHP configuration please :v Centos 7

Posted on July 29, 2014

Help me Hi I want to use websocket as nginx is configured with hope you can help me is centos 7. I’ma little rookie appreciate your help



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

To enable websocket support on nginx, simply add the following lines below proxy_pass in your virtualhost config:

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

Don’t forget to restart nginx:

sudo service nginx restart

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.