PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 21, 2022

[FIXED] How to implement Laravel Websockets (demo project by beyondco.de) with SSL using Apache on Ubuntu 16.04?

 September 21, 2022     apache, laravel, pusher, ubuntu, virtualhost     No comments   

Issue

I tested the demo projects locally and is working fine but failed when using and applying SSL to it in my DigitalOcean droplet (Ubuntu 16.04).

I have been looking for a fix and tried several suggestions already but I still keep on getting failed WebSocket handshake error with response code of 404.

See the image below:

enter image description here

Hope someone could share their solutions on this matter.


Solution

It turns out I only need to add sudo to start the Websocket successfully.

sudo php artisan websockets:serve

All the settings/configurations were followed religiously as described here: https://docs.beyondco.de/laravel-websockets/1.0/basic-usage/ssl.html#configuration



Answered By - Nelson Melecio
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing