[fix] caddyfile

This commit is contained in:
Andy Bunce 2021-12-25 19:34:01 +00:00
parent 44d75ba59c
commit 3ea127607b
2 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,8 @@
localhost { :80, :443 {
respond "Hello, world!" encode zstd gzip
https://caddyserver.com/docs/caddyfile
file_server browse
} }
:8080 {
n2-plus.local { respond "I am 8080"
root site
} }

View File

@ -1,8 +1,9 @@
<html> <html>
<head> <head>
<title>yes</title> <title>Caddy test</title>
</head> </head>
<body> <body>
heloo This is a test
<div>Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}}</div>div>
</body> </body>
</html> </html>