Update Caddyfile

fixes 404 errors for files in the public folder, such as css or js files.
This commit is contained in:
Eric Pfeiffer 2016-07-26 17:16:25 -05:00 committed by GitHub
parent c60cb9ab40
commit 97057f259c
1 changed files with 7 additions and 2 deletions

View File

@ -1,12 +1,17 @@
# Docs: https://caddyserver.com/docs/caddyfile # Docs: https://caddyserver.com/docs/caddyfile
0.0.0.0:80 0.0.0.0:80
fastcgi / php-fpm:9000 php root /var/www/laravel/public
fastcgi / php-fpm:9000 php {
index index.php
}
rewrite { rewrite {
r .*
ext /
to /index.php?{query} to /index.php?{query}
} }
browse browse
log stdout log stdout
errors stdout errors stderr
# Uncomment to enable TLS (HTTPS) # Uncomment to enable TLS (HTTPS)
# Change the first list to listen on port 443 when enabling TLS # Change the first list to listen on port 443 when enabling TLS
#tls self_signed #tls self_signed