1. Caddy version (caddy version
):
(devel)
2. How I run Caddy:
./caddy start
a. System environment:
MacOS 10.14.6
b. Command:
./caddy start
paste command here
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
http://127.0.0.1:4000, http://localhost:4000 {
root * /Users/joe/caddy/public_html
log {
output file http.log
format logfmt
}
file_server
templates
}
3. The problem I’m having:
I notice the log shows status returned is either 200 or 304.
304 is consistent on the pages that return it.
4. Error messages and/or full log output:
2020/05/11 02:32:04.805 INFO http.log.access.log0 handled request {“request”: {“method”: “GET”, “uri”: “/assets/home1.css”, “proto”: “HTTP/1.1”, “remote_addr”: “127.0.0.1:65151”, “host”: “127.0.0.1:4000”, “headers”: {“Cookie”: ["_ga=GA1.1.1753940845.1588802039; _gid=GA1.1.883587341.1589153575; _vianet2_session=elJjVTlNaTlZeTBuQldkSTEzNno1NURJemJVM1JBMS85SnZqZHErbkdVUWRmNFNTVjZjelpjTUpTWjBobVZnWVF1aFR3WHVpQ2dFQ0hSTnc3R3h1V1htWEZXYWF2M003Qk9iTG5JSnBxbEJWQTJuWXQrM0p1V2RDQWlVcVdzZ0lPWmwva0FPQk8rbzRBQmxHVmFXYVN3PT0tLVNqL2NqSDNOaWRBZmowK0R5WmVsckE9PQ%3D%3D–2a74409d890dd848ecf9e0fcbbf2006489787bac"], “Connection”: [“keep-alive”], “If-None-Match”: ["“qa5amc1kr”"], “Accept”: [“text/css,/;q=0.1”], “If-Modified-Since”: [“Mon, 11 May 2020 02:23:00 GMT”], “User-Agent”: [“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15”], “Referer”: [“http://127.0.0.1:4000/colo.html”], “Accept-Language”: [“en-us”], “Accept-Encoding”: [“gzip, deflate”]}}, “common_log”: “127.0.0.1 - - [10/May/2020:19:32:04 -0700] “GET /assets/home1.css HTTP/1.1” 304 0”, “latency”: 0.000098316, “size”: 0, “status”: 304, “resp_headers”: {“Etag”: ["“qa5amc1kr”"], “Server”: [“Caddy”]}}
ts=1589164324.805217 level=info msg=“handled request” requestError=“unsupported value type” common_log=“127.0.0.1 - - [10/May/2020:19:32:04 -0700] “GET /assets/home1.css HTTP/1.1” 304 0” latency=0.000098316 size=0 status=304 resp_headersError=“unsupported value type”