Closed

Websockets over SSL on Apache

Installed a php script which uses Websockets (Ratchet).

Since Chrome 47 a camera/mic access is allowed only over https. For that reason you will be forced to use HTTPS protocol only. (I am!)

Further, if you use HTTPS for your website, browser will not allow any other non-secure communication. So websocket communication must be secure as well, it must use wss instead of ws protocol.

However, The server part of the system itself cannot run wss (ws over ssl) for websockets, though there are possible 3rd party work-arounds with proxies. You should already make sure you will be able to apply one of them. (I don't know!)

If you are already using Apache (I am!) , the easiest way might be to use it as a proxy. In order to achieve this you can enable Apache's proxy_wstunnel (sudo a2enmod proxy_wstunnel). In your domain .conf file (the actual file might vary on different OS) you can add, usually next to where you ssl certificate is defined:

SSLProxyEngine On

ProxyPass /wss/ ws://[url removed, login to view]

Skills: Apache, HTML5, Linux, PHP

See more: mod_proxy_wstunnel example, apache websocket configuration, apache enable mod_proxy_wstunnel, install mod_proxy_wstunnel, apache websocket proxy example, apache websocket reverse proxy, https apache websockets, apache proxy wss to ws, need php script installed, rails ssl apache, linux kill apache php script, ssl apache centos, speaking plain http ssl apache rewrite, restaurant order system system using visual basic, example restaurant order system system using visual basic

About the Employer:
( 321 reviews ) Winter Park, United States

Project ID: #15416566

5 freelancers are bidding on average $28 for this job

ownmyserver

Hi, I have reviewed your requirement and i find this quite interesting, our site is: [url removed, login to view] will provide quick and perfect solution for your all type of technical issues/requirement Relevant Skills More

$35 USD in 1 day
(183 Reviews)
6.2
gursukh

Hey, I'm interested in your project. I'm individual​ freelancer with 5year experience. I'm always available here .so  Please send me a message so that we can discuss more.

$30 USD in 1 day
(38 Reviews)
5.1
shoiebarshad

i can do this using Apache, in my experience nginx provide a better reliability when it comes to web sockets. but it's your choice which one you want to use. Relevant Skills and Experience i have done similar project More

$25 USD in 1 day
(2 Reviews)
2.5
ivin01

I have experience with similar setup using Apache 2.4, mod_proxy, mod_wstunnel using multiple backend instances where websocket needs to be proxied. Relevant Skills and Experience Apache Ubuntu WebSockets wstunnel, mo More

$25 USD in 1 day
(0 Reviews)
0.0
narayanansukumar

I would say enable letsencrypt free ssl.. If you need any assistance please ping me.

$25 USD in 1 day
(0 Reviews)
0.0