1. The problem I’m having:
I have installed caddy and php 8.2.13 x64 and am running it as shown in the documentation. It works in the sens that pages load, but there is a 2s wait before the server responds. The wait is not there when visiting non php pages. It looks like it something to do with upstream roundtrip that takes 2.2s?
2. Error messages and/or full log output:

guldager.access.log
{"level":"info","ts":1701856279.5737286,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"10.0.0.2","remote_port":"50889","client_ip":"10.0.0.2","proto":"HTTP/1.1","method":"POST","host":"guldager.one","uri":"/wp-cron.php?doing_wp_cron=1701856272.3814179897308349609375","headers":{"User-Agent":["WordPress/6.4.1; https://guldager.one"],"Accept":["*/*"],"Accept-Encoding":["deflate, gzip"],"Connection":["close"],"Content-Length":["0"],"Content-Type":["application/x-www-form-urlencoded"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"http/1.1","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":7.0945431,"size":0,"status":200,"resp_headers":{"Alt-Svc":["h3=\":443\"; ma=2592000"],"X-Powered-By":["PHP/8.2.13"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Type":["text/html; charset=UTF-8"],"Server":["Caddy"]}}
{"level":"info","ts":1701856383.3482513,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"10.0.0.177","remote_port":"55814","client_ip":"10.0.0.177","proto":"HTTP/3.0","method":"GET","host":"guldager.one","uri":"/","headers":{"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["none"],"Priority":["u=0, i"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Accept-Language":["da-DK,da;q=0.9"],"Cookie":[],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":2.2921404,"size":16565,"status":200,"resp_headers":{"Server":["Caddy"],"Link":["<https://guldager.one/index.php?rest_route=/>; rel=\"https://api.w.org/\""],"X-Powered-By":["PHP/8.2.13"],"Content-Type":["text/html; charset=UTF-8"],"Content-Encoding":["gzip"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0, no-store, private"],"Vary":["Accept-Encoding"],"Date":["Wed, 06 Dec 2023 09:53:03 GMT"]}}
{"level":"info","ts":1701856411.9169424,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"3.72.241.119","remote_port":"43238","client_ip":"3.72.241.119","proto":"HTTP/1.1","method":"GET","host":"guldager.one","uri":"/","headers":{"Upgrade-Insecure-Requests":["1"],"Accept-Encoding":["gzip, deflate"],"Accept-Language":["en-US,en;q=0.8"],"Connection":["keep-alive"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"]}},"bytes_read":0,"user_id":"","duration":0,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://guldager.one/"],"Content-Type":[]}}
{"level":"info","ts":1701856414.27335,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/","headers":{"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":2.3057104,"size":15245,"status":200,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Link":["<https://guldager.one/index.php?rest_route=/>; rel=\"https://api.w.org/\""],"X-Powered-By":["PHP/8.2.13"],"Content-Type":["text/html; charset=UTF-8"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"]}}
{"level":"info","ts":1701856414.3003051,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/wp-includes/blocks/navigation/style.min.css?ver=6.4.1","headers":{"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"Accept":["text/css,*/*;q=0.1"],"Referer":["https://guldager.one/"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":0,"size":2408,"status":200,"resp_headers":{"Last-Modified":["Tue, 26 Sep 2023 19:11:22 GMT"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Etag":["\"s1lxaycra\""],"Content-Type":["text/css; charset=utf-8"]}}
{"level":"info","ts":1701856414.300905,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/wp-includes/blocks/image/style.min.css?ver=6.4.1","headers":{"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"Accept":["text/css,*/*;q=0.1"],"Referer":["https://guldager.one/"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":0.0005998,"size":1625,"status":200,"resp_headers":{"Etag":["\"s3o1bk5dv\""],"Content-Type":["text/css; charset=utf-8"],"Last-Modified":["Sun, 05 Nov 2023 19:40:32 GMT"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}
{"level":"info","ts":1701856414.3191097,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/wp-includes/js/dist/interactivity.min.js?ver=6.4.1","headers":{"Referer":["https://guldager.one/"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"Accept":["*/*"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":0.0005069,"size":12364,"status":200,"resp_headers":{"Alt-Svc":["h3=\":443\"; ma=2592000"],"Etag":["\"s3o1bkowp\""],"Content-Type":["text/javascript; charset=utf-8"],"Last-Modified":["Sun, 05 Nov 2023 19:40:32 GMT"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"]}}
{"level":"info","ts":1701856414.3278623,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/wp-includes/blocks/navigation/view.min.js?ver=e3d6f3216904b5b42831","headers":{"Accept":["*/*"],"Referer":["https://guldager.one/"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"bytes_read":0,"user_id":"","duration":0,"size":1113,"status":200,"resp_headers":{"Etag":["\"s2zw5l2rm\""],"Content-Type":["text/javascript; charset=utf-8"],"Last-Modified":["Mon, 23 Oct 2023 18:46:33 GMT"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}
system.log
{"level":"debug","ts":1701856383.3425734,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"127.0.0.1:9000","duration":2.2864623,"request":{"remote_ip":"10.0.0.177","remote_port":"55814","client_ip":"10.0.0.177","proto":"HTTP/3.0","method":"GET","host":"guldager.one","uri":"/index.php","headers":{"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Priority":["u=0, i"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Accept-Language":["da-DK,da;q=0.9"],"X-Forwarded-For":["10.0.0.177"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["none"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["guldager.one"],"Cookie":[]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"guldager.one"}},"headers":{"Content-Type":["text/html; charset=UTF-8"],"Link":["<https://guldager.one/index.php?rest_route=/>; rel=\"https://api.w.org/\""],"X-Powered-By":["PHP/8.2.13"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0, no-store, private"]},"status":200}
{"level":"debug","ts":1701856411.9746284,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/","headers":{"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"method":"GET","uri":"/index.php"}
{"level":"debug","ts":1701856411.974749,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"127.0.0.1:9000","total_upstreams":1}
{"level":"debug","ts":1701856411.9749157,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/index.php","headers":{"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"X-Forwarded-For":["3.72.241.119"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["guldager.one"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"Accept-Language":["en-US,en;q=0.8"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"env":{"HTTP_X_FORWARDED_HOST":"guldager.one","HTTP_X_FORWARDED_PROTO":"https","AUTH_TYPE":"","REMOTE_PORT":"40086","HTTP_HOST":"guldager.one","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","REMOTE_HOST":"3.72.241.119","REQUEST_SCHEME":"https","REQUEST_URI":"/","HTTP_USER_AGENT":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)","HTTP_X_FORWARDED_FOR":"3.72.241.119","DOCUMENT_ROOT":"D:\\www\\guldager","SCRIPT_FILENAME":"D:\\www\\guldager\\index.php","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","CONTENT_TYPE":"","REQUEST_METHOD":"GET","SERVER_NAME":"guldager.one","HTTP_PRAGMA":"no-cache","HTTP_CACHE_CONTROL":"no-cache","GATEWAY_INTERFACE":"CGI/1.1","REMOTE_IDENT":"","CONTENT_LENGTH":"","QUERY_STRING":"","SERVER_PROTOCOL":"HTTP/2.0","SERVER_PORT":"443","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.8","PATH_INFO":"","SERVER_SOFTWARE":"Caddy/v2.7.4","HTTP_UPGRADE_INSECURE_REQUESTS":"1","REMOTE_ADDR":"3.72.241.119","REMOTE_USER":"","DOCUMENT_URI":"/index.php","SCRIPT_NAME":"/index.php","HTTPS":"on","SSL_PROTOCOL":"TLSv1.2","SSL_CIPHER":"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"},"dial":"127.0.0.1:9000","env":{"SSL_PROTOCOL":"TLSv1.2","SSL_CIPHER":"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256","HTTP_UPGRADE_INSECURE_REQUESTS":"1","REMOTE_ADDR":"3.72.241.119","REMOTE_USER":"","DOCUMENT_URI":"/index.php","SCRIPT_NAME":"/index.php","HTTPS":"on","HTTP_X_FORWARDED_HOST":"guldager.one","HTTP_X_FORWARDED_PROTO":"https","AUTH_TYPE":"","REMOTE_PORT":"40086","HTTP_HOST":"guldager.one","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","REMOTE_HOST":"3.72.241.119","REQUEST_SCHEME":"https","REQUEST_URI":"/","HTTP_USER_AGENT":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)","HTTP_X_FORWARDED_FOR":"3.72.241.119","DOCUMENT_ROOT":"D:\\www\\guldager","SCRIPT_FILENAME":"D:\\www\\guldager\\index.php","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","CONTENT_TYPE":"","REQUEST_METHOD":"GET","SERVER_NAME":"guldager.one","HTTP_PRAGMA":"no-cache","SERVER_PORT":"443","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.8","HTTP_CACHE_CONTROL":"no-cache","GATEWAY_INTERFACE":"CGI/1.1","REMOTE_IDENT":"","CONTENT_LENGTH":"","QUERY_STRING":"","SERVER_PROTOCOL":"HTTP/2.0","PATH_INFO":"","SERVER_SOFTWARE":"Caddy/v2.7.4"},"request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/index.php","headers":{"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"X-Forwarded-For":["3.72.241.119"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["guldager.one"],"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}}}
{"level":"debug","ts":1701856414.2656631,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"127.0.0.1:9000","duration":2.290914,"request":{"remote_ip":"3.72.241.119","remote_port":"40086","client_ip":"3.72.241.119","proto":"HTTP/2.0","method":"GET","host":"guldager.one","uri":"/index.php","headers":{"Accept-Language":["en-US,en;q=0.8"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/61.0.3163.100 Chrome/61.0.3163.100 Safari/537.36 PingdomPageSpeed/1.0 (pingbot/2.0; +http://www.pingdom.com/)"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["guldager.one"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"X-Forwarded-For":["3.72.241.119"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"h2","server_name":"guldager.one"}},"headers":{"Link":["<https://guldager.one/index.php?rest_route=/>; rel=\"https://api.w.org/\""],"X-Powered-By":["PHP/8.2.13"],"Content-Type":["text/html; charset=UTF-8"]},"status":200}
3. Caddy version:
v2.7.4 h1:J8nisjdOxnYHXlorUKXY75Gr6iBfudfoGhrJ8t7/flI=
4. How I installed and ran Caddy:
Windows exe file
a. System environment:
Windows 11 pro
b. Command:
running caddy.exe as service
d. My complete Caddy config:
{
# General Options
log default {
output file logs/system.log
format json
level debug
}
# TLS Options
email hostmaster@guldager.one
# Server Options
servers {
}
}
(allowed) {
# Blockes anything not coming from 10.0.0.0
@blocked not {
remote_ip 10.0.0.0/16
}
}
(blocked) {
respond @blocked "I have gone and will not return" 404
}
guldager.one, www.guldager.one {
encode gzip
root * guldager/
php_fastcgi 127.0.0.1:9000
file_server
log {
output file logs/guldager.access.log
format json {
time_local
}
}
}
xn--lovliggr-c5a.nu, www.xn--lovliggr-c5a.nu {
encode gzip
root * lovliggor/
php_fastcgi 127.0.0.1:9000
file_server
log {
output file logs/lovlig.access.log
format json {
time_local
}
}
}
xn--lovliggr-c5a.dk, www.xn--lovliggr-c5a.dk {
encode gzip
root * lovliggor/
php_fastcgi 127.0.0.1:9000
file_server
log {
output file logs/lovligdk.access.log
format json {
time_local
}
}
}