frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Multisite with binary

Open te-deum opened this issue 8 months ago • 4 comments

Describe you feature request

I would like to know if it's possible to host multiple website with the FrankenPHP binary like Caddy can do with a JSON configuration file ?

My project use Laravel and is a SPA with Vue. I use a load balancer as reverse proxy to manage TLS connexion to my project. I actually use Nginx as HTML server and everything is working well.

I want to try and test FrankenPHP but I can't get multiple site working with the binary. I try to give a config JSON file without success :-( Here is the simple JSON that I try :

:8081 {
    root * /data/app/public
    encode zstd gzip br
}

:8082 {
    root * /data/demo/public
    encode zstd gzip br
}

:8083 {
    root * /data/beta/public
    encode zstd gzip br
}

Any idea if it's possible to do what I want ?

te-deum avatar Jun 10 '24 11:06 te-deum