Closed amit772000 closed 1 week ago
Hey @amit772000, what does your web server configuration look like?
@joedixon i have just added my nginx web server configuration in the question. so you can take a look.
Thanks @amit772000, it looks like your server is only listening for /app
, but it will also need to listen for /apps
You can read more about that here: https://laravel.com/docs/11.x/reverb#web-server
@joedixon ok i read that document but i can not able to find the nginx example which provides any example to liste on /app and /apps both ? can you please suggest me how you are thinking ? so i can implement in my code and try it ? Thanks
@joedixon ok i read that document but i can not able to find the nginx example which provides any example to liste on /app and /apps both ? can you please suggest me how you are thinking ? so i can implement in my code and try it ? Thanks
worked with me:
ProxyPreserveHost On
<Location /app>
ProxyPass ws://0.0.0.0:8080/app
ProxyPassReverse ws://0.0.0.0:8080/app
</Location>
<Location /apps>
ProxyPass http://0.0.0.0:8080/apps
ProxyPassReverse http://0.0.0.0:8080/apps
</Location>
Reverb Version
beta
Laravel Version
10.48
PHP Version
8.2
Description
i have configured reverb with my sub domain abc.example.com. connection is established successfully but when broadcasting event it is ended up with pusher error as below.
Illuminate\Broadcasting\BroadcastException: Pusher error: <!DOCTYPE html>