From 97057f259c08b1e16d04a7d0cec01a95894e9bb7 Mon Sep 17 00:00:00 2001 From: Eric Pfeiffer Date: Tue, 26 Jul 2016 17:16:25 -0500 Subject: [PATCH] Update Caddyfile fixes 404 errors for files in the public folder, such as css or js files. --- caddy/Caddyfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index d8f6a5d2..5052db32 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -1,12 +1,17 @@ # Docs: https://caddyserver.com/docs/caddyfile 0.0.0.0:80 -fastcgi / php-fpm:9000 php +root /var/www/laravel/public +fastcgi / php-fpm:9000 php { + index index.php +} rewrite { + r .* + ext / to /index.php?{query} } browse log stdout -errors stdout +errors stderr # Uncomment to enable TLS (HTTPS) # Change the first list to listen on port 443 when enabling TLS #tls self_signed