No output for site log

You mean you literally went from:
respond "foo" 200
to??:
reverse_proxy "foo" 200

It did produce an error in the web_access.log file, even with just reverse_proxy of course.

So what could be the diff between a production domain config and a contrived localhost config?

No, I put in reverse_proxy localhost:80, which hits the one server I do have running on the same machine (always returns a HTTP->HTTPS redirect response).

@JustinWebDev are you sure you actually reach the right server?
web_access.log will only be created as soon as the first request needs to be logged (in your originally shared config, that’s everything that hits service.myserver.com:8443).

So, assuming there might be something wrong with the actual request routing outside of caddy’s scope (networking/firewall/port forwards/whatever):
Do you actually reach your target specified in reverse_proxy :81 when connecting to service.myserver.com:8443? And are you able to verify you don’t hit another totally different caddy running on another host/server?

1 Like

I did this:

http://:8880 {
	log {
		output file web_access.log {
			roll true # Rotate logs, enabled by default
			roll_size_mb 10 # Set max size 10 MB
			roll_keep 2 # Keep at most 2 log files
		}
		#level ERROR
	}
	reverse_proxy localhost:81

and got a log. The only diff is the domain and the protocol. I guess I’ll try adding the protocol…

@emilylange Yeah, I’m sure. I have only one Caddy server and only one service in the config. Other than the log not working, everything works.

This is looking like a bug. It works with local connections but not with remote (or is it domains?).

Compared to your original Caddyfile you also commented out the level ERROR statement (like @francislavoie suggested) and changed the reverse_proxy :81 to reverse_proxy localhost:81.

Could you please try changing http://:8880 { to service.myserver.com:8443 { and post your whole Caddyfile again? Maybe together with some caddy logs?

Thank you

3 Likes

The Caddy file I posted was the whole file. I stripped it down even further for testing (to the bare min). Here is a log where I contact the server and get the login prompt:

2022/03/11 00:09:39	info	tls.cache.maintenance	started background certificate maintenance	{"cache": "0xc000374070"}
2022/03/11 00:09:39	debug	http	starting server loop	{"address": "[::]:8843", "http3": false, "tls": true}
2022/03/11 00:09:39	debug	http	starting server loop	{"address": "[::]:80", "http3": false, "tls": false}
2022/03/11 00:09:39	info	http	enabling automatic TLS certificate management	{"domains": ["service.awesomedomain.com"]}
2022/03/11 00:09:39	debug	tls	loading managed certificate	{"domain": "service.awesomedomain.com", "expiration": "2022/05/12 19:14:03", "issuer_key": "acme-v02.api.letsencrypt.org-directory", "storage": "FileStorage:C:\\Users\\adminperson\\AppData\\Roaming\\Caddy"}
2022/03/11 00:09:39	debug	tls.cache	added certificate to cache	{"subjects": ["service.awesomedomain.com"], "expiration": "2022/05/12 19:14:03", "managed": true, "issuer_key": "acme-v02.api.letsencrypt.org-directory", "hash": "0ded9b5bf5c79d0fe7633fe3c4e9e9301d2e0c095e3cfa65f00004bd13d403c0", "cache_size": 1, "cache_capacity": 10000}
2022/03/11 00:09:39	info	tls	cleaning storage unit	{"description": "FileStorage:C:\\Users\\adminperson\\AppData\\Roaming\\Caddy"}
2022/03/11 00:09:39	info	tls	finished cleaning storage units
2022/03/12 00:01:29	info	tls.cache.maintenance	started background certificate maintenance	{"cache": "0xc000386150"}
2022/03/12 00:01:29	info	http	enabling automatic HTTP->HTTPS redirects	{"server_name": "srv0"}
2022/03/12 00:01:29	info	tls	cleaning storage unit	{"description": "FileStorage:C:\\Users\\adminperson\\AppData\\Roaming\\Caddy"}
2022/03/12 00:01:29	debug	http	starting server loop	{"address": "[::]:8443", "http3": false, "tls": true}
2022/03/12 00:01:29	debug	http	starting server loop	{"address": "[::]:80", "http3": false, "tls": false}
2022/03/12 00:01:29	info	http	enabling automatic TLS certificate management	{"domains": ["service.awesomedomain.com"]}
2022/03/12 00:01:29	info	tls	finished cleaning storage units
2022/03/12 00:01:29	debug	tls	loading managed certificate	{"domain": "service.awesomedomain.com", "expiration": "2022/05/12 19:14:03", "issuer_key": "acme-v02.api.letsencrypt.org-directory", "storage": "FileStorage:C:\\Users\\adminperson\\AppData\\Roaming\\Caddy"}
2022/03/12 00:01:29	debug	tls.cache	added certificate to cache	{"subjects": ["service.awesomedomain.com"], "expiration": "2022/05/12 19:14:03", "managed": true, "issuer_key": "acme-v02.api.letsencrypt.org-directory", "hash": "0ded9b5bf5c79d0fe7633fe3c4e9e9301d2e0c095e3cfa65f00004bd13d403c0", "cache_size": 1, "cache_capacity": 10000}
2022/03/12 00:23:13	debug	tls.handshake	choosing certificate	{"identifier": "service.awesomedomain.com", "num_choices": 1}
2022/03/12 00:23:13	debug	tls.handshake	default certificate selection results	{"identifier": "service.awesomedomain.com", "subjects": ["service.awesomedomain.com"], "managed": true, "issuer_key": "acme-v02.api.letsencrypt.org-directory", "hash": "0ded9b5bf5c79d0fe7633fe3c4e9e9301d2e0c095e3cfa65f00004bd13d403c0"}
2022/03/12 00:23:13	debug	tls.handshake	matched certificate in cache	{"subjects": ["service.awesomedomain.com"], "managed": true, "expiration": "2022/05/12 19:14:03", "hash": "0ded9b5bf5c79d0fe7633fe3c4e9e9301d2e0c095e3cfa65f00004bd13d403c0"}
2022/03/12 00:23:14	debug	http.handlers.reverse_proxy	upstream roundtrip	{"upstream": "localhost:81", "duration": 0.3620526, "request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Sec-Fetch-Dest": ["document"], "X-Forwarded-For": ["111.222.229.224"], "Sec-Ch-Ua-Platform": ["\"Android\""], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Sec-Fetch-Mode": ["navigate"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Sec-Fetch-User": ["?1"], "Accept-Language": ["en-US,en;q=0.9"], "X-Forwarded-Proto": ["https"], "Sec-Ch-Ua-Mobile": ["?1"], "Upgrade-Insecure-Requests": ["1"], "Sec-Fetch-Site": ["none"], "Accept-Encoding": ["gzip, deflate, br"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "headers": {"Set-Cookie": ["HFS_SID_=0.514401261694729; path=/; HttpOnly"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Justin's web\""], "Accept-Ranges": ["bytes"]}, "status": 401}
2022/03/12 00:23:14	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Sec-Fetch-Site": ["none"], "Sec-Fetch-Mode": ["navigate"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Ch-Ua-Mobile": ["?1"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Upgrade-Insecure-Requests": ["1"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Sec-Fetch-User": ["?1"], "Sec-Fetch-Dest": ["document"], "Accept-Language": ["en-US,en;q=0.9"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.229.224 - - [11/Mar/2022:18:23:14 -0600] \"GET / HTTP/2.0\" 401 1092", "user_id": "", "duration": 0.3698629, "size": 1092, "status": 401, "resp_headers": {"Server": ["Caddy"], "Www-Authenticate": ["Basic realm=\"Justin's web\""], "Accept-Ranges": ["bytes"], "Set-Cookie": ["HFS_SID_=0.514401261694729; path=/; HttpOnly"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"], "Content-Type": ["text/html"]}}
2022/03/12 00:23:38	debug	http.handlers.reverse_proxy	upstream roundtrip	{"upstream": "localhost:81", "duration": 0.3471744, "request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Sec-Fetch-Dest": ["document"], "Accept-Encoding": ["gzip, deflate, br"], "X-Forwarded-For": ["111.222.229.224"], "X-Forwarded-Proto": ["https"], "Sec-Ch-Ua-Mobile": ["?1"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Upgrade-Insecure-Requests": ["1"], "Sec-Fetch-Mode": ["navigate"], "Accept-Language": ["en-US,en;q=0.9"], "Cache-Control": ["max-age=0"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Sec-Fetch-Site": ["none"], "Sec-Fetch-User": ["?1"], "Cookie": ["HFS_SID_=0.514401261694729"], "Authorization": ["Basic dWw6dGlnZXIhdXBsb3VkMDAuLg=="]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "headers": {"Content-Length": ["1090"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Invalid login\""], "Accept-Ranges": ["bytes"], "Content-Encoding": ["gzip"]}, "status": 401}
2022/03/12 00:23:38	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Sec-Ch-Ua-Mobile": ["?1"], "Sec-Fetch-Dest": ["document"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Ch-Ua-Platform": ["\"Android\""], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Cache-Control": ["max-age=0"], "Upgrade-Insecure-Requests": ["1"], "Sec-Fetch-Mode": ["navigate"], "Accept-Language": ["en-US,en;q=0.9"], "Sec-Fetch-User": ["?1"], "Cookie": ["HFS_SID_=0.514401261694729"], "Authorization": ["Basic dWw6dGlnZXIhdXBsb3VkMDAuLg=="], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Sec-Fetch-Site": ["none"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.229.224 - - [11/Mar/2022:18:23:38 -0600] \"GET / HTTP/2.0\" 401 1090", "user_id": "", "duration": 0.3506184, "size": 1090, "status": 401, "resp_headers": {"Server": ["Caddy"], "Content-Encoding": ["gzip"], "Content-Length": ["1090"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Invalid login\""], "Accept-Ranges": ["bytes"]}}
2022/03/12 00:23:41	debug	http.handlers.reverse_proxy	upstream roundtrip	{"upstream": "localhost:81", "duration": 0.3309601, "request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Authorization": ["Basic dWw6dGlnZXIhdXBsb3VkMDAuLg=="], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Fetch-Site": ["none"], "Sec-Fetch-User": ["?1"], "Sec-Fetch-Dest": ["document"], "X-Forwarded-Proto": ["https"], "Cache-Control": ["max-age=0"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Accept-Language": ["en-US,en;q=0.9"], "Sec-Fetch-Mode": ["navigate"], "Cookie": ["HFS_SID_=0.514401261694729"], "X-Forwarded-For": ["111.222.229.224"], "Sec-Ch-Ua-Mobile": ["?1"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Upgrade-Insecure-Requests": ["1"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "headers": {"Content-Length": ["1092"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Invalid login\""], "Accept-Ranges": ["bytes"], "Content-Encoding": ["gzip"]}, "status": 401}
2022/03/12 00:23:41	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Sec-Fetch-Mode": ["navigate"], "Cookie": ["HFS_SID_=0.514401261694729"], "Sec-Ch-Ua-Mobile": ["?1"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Upgrade-Insecure-Requests": ["1"], "Authorization": ["Basic dWw6dGlnZXIhdXBsb3VkMDAuLg=="], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Fetch-Site": ["none"], "Sec-Fetch-User": ["?1"], "Sec-Fetch-Dest": ["document"], "Accept-Language": ["en-US,en;q=0.9"], "Cache-Control": ["max-age=0"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.229.224 - - [11/Mar/2022:18:23:41 -0600] \"GET / HTTP/2.0\" 401 1092", "user_id": "", "duration": 0.3402134, "size": 1092, "status": 401, "resp_headers": {"Server": ["Caddy"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Invalid login\""], "Accept-Ranges": ["bytes"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"]}}
2022/03/12 00:23:42	debug	http.handlers.reverse_proxy	upstream roundtrip	{"upstream": "localhost:81", "duration": 0.3467776, "request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/favicon.ico", "headers": {"Accept": ["image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"], "Sec-Fetch-Mode": ["no-cors"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Sec-Ch-Ua-Mobile": ["?1"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Dest": ["image"], "Referer": ["https://service.awesomedomain.com/"], "Cookie": ["HFS_SID_=0.514401261694729"], "X-Forwarded-For": ["111.222.229.224"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "X-Forwarded-Proto": ["https"], "Accept-Encoding": ["gzip, deflate, br"], "Accept-Language": ["en-US,en;q=0.9"], "Authorization": ["Basic dWw6dGlnZXIhdXBsb3VkMDAuLg=="]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "headers": {"Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Invalid login\""], "Accept-Ranges": ["bytes"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"]}, "status": 401}
2022/03/12 00:23:42	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.229.224:11605", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/favicon.ico", "headers": {"Sec-Ch-Ua-Mobile": ["?1"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Accept": ["image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"], "Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["no-cors"], "Sec-Fetch-Dest": ["image"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Cookie": ["HFS_SID_=0.514401261694729"], "Referer": ["https://service.awesomedomain.com/"], "Accept-Encoding": ["gzip, deflate, br"], "Accept-Language": ["en-US,en;q=0.9"], "Authorization": ["Basic dWw6dGlnZXIhdXBsb3VkMDAuLg=="]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.229.224 - - [11/Mar/2022:18:23:42 -0600] \"GET /favicon.ico HTTP/2.0\" 401 1092", "user_id": "", "duration": 0.3498092, "size": 1092, "status": 401, "resp_headers": {"Server": ["Caddy"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Invalid login\""], "Accept-Ranges": ["bytes"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"]}} ```
1 Like

Please use triple backticks (```) to format your logs (just like you did for your Caddyfile when you posted them). You can use them like this:

```
some text
some more text in another line
```

becomes:

some text
some more text in another line

Or select the logs in your post and hit CTRL+E (or click the little </> icon).
Thank you.

Also, because the https port changed between restarts

2022/03/11 00:09:39 debug http starting server loop {"address": "[::]:8843", "http3": false, "tls": true}
## ...
2022/03/12 00:01:29 debug http starting server loop {"address": "[::]:8443", "http3": false, "tls": true}`

could you please post your Caddyfile again?
The json config from http://localhost:2019/config/ would be very helpful too :slight_smile:

2 Likes

Sorry - had a port typo in the config file for that last log. Here is a new log and config.

{"apps":{"http":{"servers":{"srv0":{"listen":[":8443"],"logs":{"logger_names":{"service.awesomedomain.com:8443":"log0"}},"routes":[{"handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"reverse_proxy","upstreams":[{"dial":"localhost:81"}]}]}]}],"match":[{"host":["service.awesomedomain.com"]}],"terminal":true}]}}}},"logging":{"logs":{"caddy-log":{"encoder":{"format":"console","time_format":"wall"},"writer":{"filename":"caddy.log","output":"file"}},"default":{"exclude":["http.log.access.log0"]},"log0":{"include":["http.log.access.log0"],"writer":{"filename":"web_access.log","output":"file","roll_keep":2}}}}}
2022/03/12 19:22:30	info	http	enabling automatic HTTP->HTTPS redirects	{"server_name": "srv0"}
2022/03/12 19:22:30	info	tls.cache.maintenance	started background certificate maintenance	{"cache": "0xc00038e310"}
2022/03/12 19:22:30	info	tls	cleaning storage unit	{"description": "FileStorage:C:\\Users\\adminperson\\AppData\\Roaming\\Caddy"}
2022/03/12 19:22:30	info	http	enabling automatic TLS certificate management	{"domains": ["service.awesomedomain.com"]}
2022/03/12 19:22:30	info	tls	finished cleaning storage units
2022/03/12 19:23:40	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.173.83:12147", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Accept-Language": ["en-US,en;q=0.9"], "Sec-Ch-Ua-Mobile": ["?1"], "Upgrade-Insecure-Requests": ["1"], "Sec-Fetch-Site": ["none"], "Sec-Fetch-Mode": ["navigate"], "Accept-Encoding": ["gzip, deflate, br"], "Sec-Fetch-Dest": ["document"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Sec-Ch-Ua-Platform": ["\"Android\""], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Sec-Fetch-User": ["?1"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.173.83 - - [12/Mar/2022:13:23:40 -0600] \"GET / HTTP/2.0\" 401 1091", "user_id": "", "duration": 0.3574535, "size": 1091, "status": 401, "resp_headers": {"Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Justin's web\""], "Accept-Ranges": ["bytes"], "Set-Cookie": ["HFS_SID_=0.833680079085752; path=/; HttpOnly"], "Content-Encoding": ["gzip"], "Server": ["Caddy"], "Content-Length": ["1091"]}}
2022/03/12 19:23:46	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.173.83:12147", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/", "headers": {"Cache-Control": ["max-age=0"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Sec-Fetch-Site": ["none"], "Sec-Fetch-Dest": ["document"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"], "Sec-Fetch-User": ["?1"], "Accept-Language": ["en-US,en;q=0.9"], "Cookie": ["HFS_SID_=0.833680079085752"], "Sec-Ch-Ua-Mobile": ["?1"], "Sec-Ch-Ua-Platform": ["\"Android\""], "Upgrade-Insecure-Requests": ["1"], "Sec-Fetch-Mode": ["navigate"], "Accept-Encoding": ["gzip, deflate, br"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.173.83 - - [12/Mar/2022:13:23:46 -0600] \"GET / HTTP/2.0\" 401 1092", "user_id": "", "duration": 0.3278118, "size": 1092, "status": 401, "resp_headers": {"Server": ["Caddy"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Justin's web\""], "Accept-Ranges": ["bytes"]}}
2022/03/12 19:23:46	error	http.log.access	handled request	{"request": {"remote_addr": "111.222.173.83:12147", "proto": "HTTP/2.0", "method": "GET", "host": "service.awesomedomain.com", "uri": "/favicon.ico", "headers": {"Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Mode": ["no-cors"], "Sec-Fetch-Dest": ["image"], "Referer": ["https://service.awesomedomain.com/"], "Cookie": ["HFS_SID_=0.833680079085752"], "Sec-Ch-Ua": ["\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\""], "Sec-Ch-Ua-Platform": ["\"Android\""], "Accept": ["image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"], "Accept-Language": ["en-US,en;q=0.9"], "Sec-Ch-Ua-Mobile": ["?1"], "User-Agent": ["Mozilla/5.0 (Linux; Android 12; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36"], "Accept-Encoding": ["gzip, deflate, br"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "service.awesomedomain.com"}}, "common_log": "111.222.173.83 - - [12/Mar/2022:13:23:46 -0600] \"GET /favicon.ico HTTP/2.0\" 401 1092", "user_id": "", "duration": 0.3394668, "size": 1092, "status": 401, "resp_headers": {"Server": ["Caddy"], "Content-Type": ["text/html"], "Www-Authenticate": ["Basic realm=\"Justin's web\""], "Accept-Ranges": ["bytes"], "Content-Encoding": ["gzip"], "Content-Length": ["1092"]}}
2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.