Merge pull request #1079 from zuohuadong/patch-5

add demo and  use  caddy example for laravel
This commit is contained in:
Mahmoud Zalt 2017-08-08 09:03:18 +03:00 committed by GitHub
commit 9b8eee6a98
1 changed files with 27 additions and 25 deletions

View File

@ -1,5 +1,5 @@
# Docs: https://caddyserver.com/docs/caddyfile
0.0.0.0:80
0.0.0.0:80 {
root /var/www/public
fastcgi / php-fpm:9000 php {
index index.php
@ -9,9 +9,7 @@ fastcgi / php-fpm:9000 php {
# ext / .html
rewrite {
r .*
ext /
to /index.php?{query}
to {path} {path}/ /index.php?{query}
}
gzip
browse
@ -26,3 +24,7 @@ errors /var/log/caddy/error.log
#tls {
# dns cloudflare
#}
}
laradock.demo {
root /var/www/public
}