What happened?
Hi,
I'm using the latest docker image of frankenphp.
I just tried to add a second virtual server at localhost:8080 that will uses the same document-root as the main server.
Now it returns 0 length response + 500 error code :
Here is my caddyfile :
{
# Global options
log {
output file /var/log/caddy/access.log {
roll_size 10mb
roll_keep 5
roll_keep_for 720h
}
level error
format console
}
auto_https off
auto_https disable_redirects
}
localhost:8080 {
root * /app/html/public
php_server {
max_execution_time 0
}
}
{$SERVER_NAME} {
handle /presence* {
reverse_proxy localhost:8080 {
transport http {
tls_insecure_skip_verify
}
}
}
tls {
protocols tls1.3
}
# General handling for other requests
handle {
try_files {path} {path}/ /index.php
}
root * /app/html/public
php_server
encode zstd br gzip
file_server
@static {
file extension .js .css .png .jpg .jpeg .gif .ico .svg
}
handle @static {
header Cache-Control "max-age=31536000"
}
# Error handling
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404
file_server
}
{$CADDY_SERVER_EXTRA_DIRECTIVES}
}
# HTTP to HTTPS redirect
:80 {
redir https://{host}{uri} permanent
}
I think Caddy should at least return an error message

Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
What happened?
Hi,
I'm using the latest docker image of frankenphp.
I just tried to add a second virtual server at localhost:8080 that will uses the same document-root as the main server.
Now it returns 0 length response + 500 error code :
Here is my caddyfile :
I think Caddy should at least return an error message
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output