● caddy.service - Caddy
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-11-30 10:01:25 UTC; 4min 28s ago
Docs: https://caddyserver.com/docs/
Process: 28583 ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile (code=exited, status=0/SUCCESS)
Main PID: 28506 (caddy)
Tasks: 8 (limit: 1164)
Memory: 12.2M
CGroup: /system.slice/caddy.service
└─28506 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
Nov 30 10:05:08 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730708.8184826,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv1"}
Nov 30 10:05:08 ip-172-31-24-130 caddy[28506]: {"level":"warn","ts":1606730708.8186934,"logger":"http","msg":"user server is listening on same interface as automatic HTTP->HTTPS redirects; user-configured routes might override these redirects","server_name":"srv0","interface":"tcp/:80"}
Nov 30 10:05:08 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730708.8202882,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["b**.c**","k**.c**"]}
Nov 30 10:05:09 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730709.8511438,"logger":"tls.cache.maintenance","msg":"stopped background certificate maintenance","cache":"0xc0001a4700"}
Nov 30 10:05:09 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730709.8520076,"msg":"autosaved config","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 30 10:05:09 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730709.852184,"logger":"admin.api","msg":"load complete"}
Nov 30 10:05:09 ip-172-31-24-130 systemd[1]: Reloaded Caddy.
Nov 30 10:05:10 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730710.3107305,"logger":"admin","msg":"stopped previous server"}
Nov 30 10:05:33 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730733.0954893,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.31.23.228:10384","proto":"HTTP/1.1","method":"GET","host":"172.31.24.130","uri":"/","headers":{"Connection":["close"],"User-Agent":["ELB-HealthChecker/2.0"],"Accept-Encoding":["gzip, compressed"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:05:33 +0000] \"GET / HTTP/1.1\" 308 0","duration":0.000087235,"size":0,"status":308,"resp_headers":{"Connection":["close"],"Content-Type":[],"Server":["Caddy"],"Location":["https://172.31.24.130/"]}}
Nov 30 10:05:38 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730738.002086,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.31.35.110:49422","proto":"HTTP/1.1","method":"GET","host":"172.31.24.130","uri":"/","headers":{"Connection":["close"],"User-Agent":["ELB-HealthChecker/2.0"],"Accept-Encoding":["gzip, compressed"]}},"common_log":"172.31.35.110 - - [30/Nov/2020:10:05:38 +0000] \"GET / HTTP/1.1\" 308 0","duration":0.000085497,"size":0,"status":308,"resp_headers":{"Content-Type":[],"Server":["Caddy"],"Location":["https://172.31.24.130/"],"Connection":["close"]}}
This is from sudo systemctl status caddy
And this is from journalctl
Nov 30 10:09:03 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730943.2410867,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.31.23.228:10512","proto":"HTTP/1.1","method":"GET","host":"172.31.24.130","uri":"/","headers":{"Connection":["close"],"User-Agent":["ELB-HealthChecker/2.0"],"Accept-Encoding":["gzip, compressed"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:09:03 +0000] \"GET / HTTP/1.1\" 308 0","duration":0.000060158,"size":0,"status":308,"resp_headers":{"Content-Type":[],"Server":["Caddy"],"Location":["https://172.31.24.130/"],"Connection":["close"]}}
Nov 30 10:09:08 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730948.149816,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.31.35.110:49546","proto":"HTTP/1.1","method":"GET","host":"172.31.24.130","uri":"/","headers":{"Connection":["close"],"User-Agent":["ELB-HealthChecker/2.0"],"Accept-Encoding":["gzip, compressed"]}},"common_log":"172.31.35.110 - - [30/Nov/2020:10:09:08 +0000] \"GET / HTTP/1.1\" 308 0","duration":0.000066261,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Location":["https://172.31.24.130/"],"Connection":["close"],"Content-Type":[]}}
Nov 30 10:09:33 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730973.2578404,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.31.23.228:10534","proto":"HTTP/1.1","method":"GET","host":"172.31.24.130","uri":"/","headers":{"Accept-Encoding":["gzip, compressed"],"Connection":["close"],"User-Agent":["ELB-HealthChecker/2.0"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:09:33 +0000] \"GET / HTTP/1.1\" 308 0","duration":0.000081305,"size":0,"status":308,"resp_headers":{"Location":["https://172.31.24.130/"],"Connection":["close"],"Content-Type":[],"Server":["Caddy"]}}
Nov 30 10:09:38 ip-172-31-24-130 caddy[28506]: {"level":"info","ts":1606730978.163548,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.31.35.110:49586","proto":"HTTP/1.1","method":"GET","host":"172.31.24.130","uri":"/","headers":{"Accept-Encoding":["gzip, compressed"],"Connection":["close"],"User-Agent":["ELB-HealthChecker/2.0"]}},"common_log":"172.31.35.110 - - [30/Nov/2020:10:09:38 +0000] \"GET / HTTP/1.1\" 308 0","duration":0.000094273,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Location":["https://172.31.24.130/"],"Connection":["close"],"Content-Type":[]}}
And another log:
{"level":"info","ts":1606730782.2287745,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"172.31.23.228:10416","proto":"HTTP/1.1","method":"HEAD","host":"kaya.work","uri":"/","headers":{"X-Amzn-Trace-Id":["Root=1-5fc4c41e-1565fa112e1b5196106eb8ac"],"Content-Length":["0"],"User-Agent":["Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"X-Forwarded-For":["63.143.42.252"],"X-Forwarded-Proto":["http"],"X-Forwarded-Port":["80"],"Accept-Language":["en-US,en;q=0.8"],"Accept-Charset":["ISO-8859-1,UTF-8;q=0.7,*;q=0.7"],"Accept-Encoding":["gzip, deflate"],"Cache-Control":["no-cache"],"Referer":["http://kaya.work"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:06:22 +0000] \"HEAD / HTTP/1.1\" 200 0","duration":0.02907687,"size":0,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/html; charset=UTF-8"]}}
{"level":"info","ts":1606730894.0447547,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"172.31.23.228:10482","proto":"HTTP/1.1","method":"GET","host":"kaya.work","uri":"/","headers":{"Accept-Encoding":["gzip,deflate"],"User-Agent":["Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36"],"Cookie":["beget=begetok"],"X-Forwarded-For":["5.188.62.214"],"X-Forwarded-Proto":["http"],"X-Forwarded-Port":["80"],"X-Amzn-Trace-Id":["Root=1-5fc4c48e-2635508c433811f16eb4c8ba"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:08:14 +0000] \"GET / HTTP/1.1\" 200 22","duration":0.02444112,"size":22,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/html; charset=UTF-8"]}}
{"level":"info","ts":1606730898.6103437,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"172.31.23.228:10482","proto":"HTTP/1.1","method":"GET","host":"kaya.work","uri":"/robots.txt","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36"],"Cookie":["beget=begetok"],"X-Forwarded-For":["5.188.62.214"],"X-Forwarded-Proto":["http"],"X-Forwarded-Port":["80"],"X-Amzn-Trace-Id":["Root=1-5fc4c492-58962007666819400b953784"],"Accept-Encoding":["gzip,deflate"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:08:18 +0000] \"GET /robots.txt HTTP/1.1\" 200 22","duration":0.030732852,"size":22,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/html; charset=UTF-8"]}}
{"level":"info","ts":1606731082.2401185,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"172.31.23.228:10590","proto":"HTTP/1.1","method":"HEAD","host":"kaya.work","uri":"/","headers":{"Accept-Language":["en-US,en;q=0.8"],"X-Forwarded-For":["63.143.42.252"],"X-Forwarded-Proto":["http"],"User-Agent":["Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Charset":["ISO-8859-1,UTF-8;q=0.7,*;q=0.7"],"Cache-Control":["no-cache"],"Referer":["http://kaya.work"],"Accept-Encoding":["gzip, deflate"],"X-Forwarded-Port":["80"],"X-Amzn-Trace-Id":["Root=1-5fc4c54a-48f4101c1fe55d4d0bcfde61"],"Content-Length":["0"]}},"common_log":"172.31.23.228 - - [30/Nov/2020:10:11:22 +0000] \"HEAD / HTTP/1.1\" 200 0","duration":0.035288389,"size":0,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/html; charset=UTF-8"]}}