If you place the binary and the Caddyfile inside the root of the project you get a white page with the following error with debug mode on even if you add the root * /public
{
debug
frankenphp
order php_server before file_server
}
# The domain name of your server
localhost {
root * /public
# Enable compression (optional)
encode zstd gzip
# Execute PHP files in the current directory and serve assets
php_server
}
Following the the Laravel Local install
If you place the binary and the Caddyfile inside the root of the project you get a white page with the following error with debug mode on even if you add the
root * /public
It works as expected if you move the Caddyfile and binary in the
/public
directory making sure to removeroot * /public
from the Caddyfile