I'm using the Laravel Websockets package https://beyondco.de/docs/laravel-websockets/getting-started/introduction.
In my local dev server I run it using php artisan websockets:server
and it works fine, but I would like to know how can I run it in my production server (Ubuntu + Apache2).
After run your websocket server, you need proxypass to your apache. like below config:
change 6001 to your websocket port.
To run in background you need to add your websocket server in backround using nohup or pm2 . example:
or using nohup