Skip to content

Commit b252156

Browse files
author
zuohuadong
authored
1 parent 8e84fbb commit b252156

1 file changed

Lines changed: 26 additions & 24 deletions

File tree

caddy/Caddyfile

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
# Docs: https://caddyserver.com/docs/caddyfile
2-
0.0.0.0:80
3-
root /var/www/public
4-
fastcgi / php-fpm:9000 php {
5-
index index.php
6-
}
2+
0.0.0.0:80 {
3+
root /var/www/public
4+
fastcgi / php-fpm:9000 php {
5+
index index.php
6+
}
77

8-
# To handle .html extensions with laravel change ext to
9-
# ext / .html
8+
# To handle .html extensions with laravel change ext to
9+
# ext / .html
1010

11-
rewrite {
12-
r .*
13-
ext /
14-
to /index.php?{query}
15-
}
16-
gzip
17-
browse
18-
log /var/log/caddy/access.log
19-
errors /var/log/caddy/error.log
20-
# Uncomment to enable TLS (HTTPS)
21-
# Change the first list to listen on port 443 when enabling TLS
22-
#tls self_signed
11+
rewrite {
12+
to {path} {path}/ /index.php?{query}
13+
}
14+
gzip
15+
browse
16+
log /var/log/caddy/access.log
17+
errors /var/log/caddy/error.log
18+
# Uncomment to enable TLS (HTTPS)
19+
# Change the first list to listen on port 443 when enabling TLS
20+
#tls self_signed
2321

24-
# To use Lets encrpt tls with a DNS provider uncomment these
25-
# lines and change the provider as required
26-
#tls {
27-
# dns cloudflare
28-
#}
22+
# To use Lets encrpt tls with a DNS provider uncomment these
23+
# lines and change the provider as required
24+
#tls {
25+
# dns cloudflare
26+
#}
27+
}
28+
laradock.demo {
29+
root /var/www/public
30+
}

0 commit comments

Comments
 (0)