Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AronRaszewski's avatar

Pusher error 404 during attempt of notifying user

Hey, I use Laravel Reverb for Broadcasting and a client can successfully connect and subscribe private channels. However, if I try to notify an user (with Notification class) I get this error:

Some of my configuration files (production):

.env

Apache configuration file:

SSLEngine On
SSLProxyEngine On
ProxyPass "/app" "ws://127.0.0.1:8080/app"
ProxyPassReverse "/app" "ws://127.0.0.1:8080/app"
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/domain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain/privkey.pem

I tried it before, "wss" instead of "ws" (in Apache configuration proxy) doesn't work at all - even connection.

It works fine on my PC locally, but the problem is on VPS production server, so I guess that's a configuration problem.

How to solve this problem? Thanks in advance

0 likes
1 reply
AronRaszewski's avatar

If anyone had similar error I've just found a solution. I added it to Apache configuration and it works now.

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>

Please or to participate in this conversation.