add demo and use caddy example for laravel
https://github.com/caddyserver/examples/blob/master/laravel/Caddyfile
This commit is contained in:
parent
8e84fbbec2
commit
b25215684b
@ -1,5 +1,5 @@
|
|||||||
# Docs: https://caddyserver.com/docs/caddyfile
|
# Docs: https://caddyserver.com/docs/caddyfile
|
||||||
0.0.0.0:80
|
0.0.0.0:80 {
|
||||||
root /var/www/public
|
root /var/www/public
|
||||||
fastcgi / php-fpm:9000 php {
|
fastcgi / php-fpm:9000 php {
|
||||||
index index.php
|
index index.php
|
||||||
@ -9,9 +9,7 @@ fastcgi / php-fpm:9000 php {
|
|||||||
# ext / .html
|
# ext / .html
|
||||||
|
|
||||||
rewrite {
|
rewrite {
|
||||||
r .*
|
to {path} {path}/ /index.php?{query}
|
||||||
ext /
|
|
||||||
to /index.php?{query}
|
|
||||||
}
|
}
|
||||||
gzip
|
gzip
|
||||||
browse
|
browse
|
||||||
@ -26,3 +24,7 @@ errors /var/log/caddy/error.log
|
|||||||
#tls {
|
#tls {
|
||||||
# dns cloudflare
|
# dns cloudflare
|
||||||
#}
|
#}
|
||||||
|
}
|
||||||
|
laradock.demo {
|
||||||
|
root /var/www/public
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user