2016-07-20 10:51:20 +08:00
|
|
|
# Docs: https://caddyserver.com/docs/caddyfile
|
|
|
|
0.0.0.0:80
|
2016-07-27 06:16:25 +08:00
|
|
|
root /var/www/laravel/public
|
|
|
|
fastcgi / php-fpm:9000 php {
|
|
|
|
index index.php
|
|
|
|
}
|
2016-07-20 11:16:36 +08:00
|
|
|
rewrite {
|
2016-07-27 06:16:25 +08:00
|
|
|
r .*
|
|
|
|
ext /
|
2016-07-20 11:16:36 +08:00
|
|
|
to /index.php?{query}
|
|
|
|
}
|
2016-08-27 02:26:22 +08:00
|
|
|
gzip
|
2016-07-20 10:51:20 +08:00
|
|
|
browse
|
2016-08-27 02:26:22 +08:00
|
|
|
log /var/log/caddy/access.log
|
|
|
|
errors /var/log/caddy/error.log
|
2016-07-20 10:51:20 +08:00
|
|
|
# Uncomment to enable TLS (HTTPS)
|
|
|
|
# Change the first list to listen on port 443 when enabling TLS
|
|
|
|
#tls self_signed
|