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

naimul007a's avatar

Reverb setup problem in live server

I've set up a Laravel Reverb server on my VPS using Apache with the Webmin panel. The Reverb client is able to connect to the server successfully. However, when an event is triggered, the Pusher returns a 404 Not Found error. I'm not sure what's causing this issue, as this is my first time deploying a Reverb application on a live server.How can I solved this please help me.

Alt text

This is the error that I get:

[2025-05-14 13:19:18] local.ERROR: Pusher error: <!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Not Found</title>
    </head>

Alt text

This is my configuration:

RewriteEngine On

ProxyPass /app  ws://0.0.0.0:8080/app
ProxyPassReverse /app ws://0.0.0.0:8080/app

This is the env file configuration

# Required Laravel Reverb ENV values
REVERB_APP_ID=498897 # Supply unique app ID
REVERB_APP_KEY=yjujg8kmdexqyq0zjpeo # You can generate your own random unique app key string
REVERB_APP_SECRET=wtr3v3lzr1yucjogiriu # You can generate your own random app secret key
REVERB_HOST="reverb-test.appsleisure.com" # Your production domain
REVERB_PORT=443 # If you got SSL setup, use 443
REVERB_SCHEME=https # Make the scheme HTTPS if you're using SSL.

# Required ENV values
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"

0 likes
1 reply
naimul007a's avatar
naimul007a
OP
Best Answer
Level 2

The solution is my case

Need to expose two endpoints for Apache

# WebSocket Proxy
RewriteEngine On
SSLEngine On

# Laravel Reverb
ProxyPass /app ws://0.0.0.0:8080/app
ProxyPassReverse /app ws://0.0.0.0:8080/app
ProxyPass /apps http://0.0.0.0:8080/apps
ProxyPassReverse /apps http://0.0.0.0:8080/apps

Please or to participate in this conversation.