swoole-src icon indicating copy to clipboard operation
swoole-src copied to clipboard

Running multiple sites with Swoole

Open binaryfire opened this issue 3 years ago • 1 comments

Hi guys,

I'm running multiple Laravel sites / projects on a single server. Is there any way to use Swoole efficiently in this "shared hosting" scenario? Can a single Swoole instance be used to serve multiple projects/domains?

Cheers

binaryfire avatar Aug 12 '21 03:08 binaryfire

You could, but it would be easier to have one Swoole server per application, and then use some reverse proxy to send requests to the correct server based on the host name.

ValiDrv avatar Aug 13 '21 13:08 ValiDrv