Commit b2521568 authored by zuohuadong's avatar zuohuadong Committed by GitHub
parent 8e84fbbe
# 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
} }
# To handle .html extensions with laravel change ext to # To handle .html extensions with laravel change ext to
# ext / .html # ext / .html
rewrite { rewrite {
r .* to {path} {path}/ /index.php?{query}
ext / }
to /index.php?{query} gzip
} browse
gzip log /var/log/caddy/access.log
browse errors /var/log/caddy/error.log
log /var/log/caddy/access.log # Uncomment to enable TLS (HTTPS)
errors /var/log/caddy/error.log # Change the first list to listen on port 443 when enabling TLS
# Uncomment to enable TLS (HTTPS) #tls self_signed
# Change the first list to listen on port 443 when enabling TLS
#tls self_signed
# To use Lets encrpt tls with a DNS provider uncomment these # To use Lets encrpt tls with a DNS provider uncomment these
# lines and change the provider as required # lines and change the provider as required
#tls { #tls {
# dns cloudflare # dns cloudflare
#} #}
}
laradock.demo {
root /var/www/public
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment