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

timmy1420's avatar

Using Laravel Echo Server on another VPS

Hi,

I have laravel-echo-server installed on another VPS, with a subdomain. However, I get the following error in the laravel echo server log:

[5:52:15 PM] - Preparing authentication request to: http://socket.example.com/ [5:52:16 PM] - Sending auth request to: http://socket.example.com//broadcasting/auth

⚠ [5:52:16 PM] - qA2A_ZNmQf9UziKTAAAI could not be authenticated to presence-user.50

301 Moved Permanently

301 Moved Permanently

openresty

Client can not be authenticated, got HTTP status 301

Please note, that I have this working when it's installed on the same server with the laravel installation.

Did anyone have success, using laravel echo server on another server?

0 likes
1 reply
timmy1420's avatar
timmy1420
OP
Best Answer
Level 1

This issue is fixed.

In the laravel-echo-server.json, I wasn't using the right authHost. This is something what the HTTP 301 stands for. I'm using aws with a loadbalancer so I'm using a few subdomains with multiple services, so It's good to know which domain you're using

Please or to participate in this conversation.