97057f259c
fixes 404 errors for files in the public folder, such as css or js files.
18 lines
342 B
Caddyfile
18 lines
342 B
Caddyfile
# Docs: https://caddyserver.com/docs/caddyfile
|
|
0.0.0.0:80
|
|
root /var/www/laravel/public
|
|
fastcgi / php-fpm:9000 php {
|
|
index index.php
|
|
}
|
|
rewrite {
|
|
r .*
|
|
ext /
|
|
to /index.php?{query}
|
|
}
|
|
browse
|
|
log stdout
|
|
errors stderr
|
|
# Uncomment to enable TLS (HTTPS)
|
|
# Change the first list to listen on port 443 when enabling TLS
|
|
#tls self_signed
|