When I first attempt to access the WordPress site mockup.udance.com.au
, this is what I see in the browser…
It’s curious how mockup.lan
gets revealed in the browser.
This is what appears in the frontend Caddy process log…
{"level":"debug","ts":"2021-07-12T18:21:27.226+0800","logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"mockup.lan:443","request":{"remote_addr":"10.1.1.50:49990","proto":"HTTP/1.1","method":"POST","host":"mockup.lan:443","uri":"/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000","headers":{"X-Forwarded-For":["10.1.1.50"],"Accept-Encoding":["deflate, gzip"],"Referer":["https://mockup.udance.com.au/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000"],"X-Forwarded-Proto":["https"],"Content-Length":["0"],"X-Forwarded-Host":["mockup.udance.com.au"],"Content-Type":["application/x-www-form-urlencoded"],"User-Agent":["WordPress/5.7.2; https://mockup.udance.com.au"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"http/1.1","proto_mutual":true,"server_name":"mockup.udance.com.au"}},"headers":{"X-Powered-By":["PHP/7.4.20"],"Content-Length":["0"],"Date":["Mon, 12 Jul 2021 10:21:27 GMT"],"Cache-Control":["no-cache, must-revalidate, max-age=0"],"Content-Type":["text/html; charset=UTF-8"],"Expires":["Wed, 11 Jan 1984 05:00:00 GMT"],"Server":["Caddy"]},"status":200}
{"level":"debug","ts":"2021-07-12T18:21:27.231+0800","logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"mockup.lan:443","request":{"remote_addr":"10.1.1.222:55880","proto":"HTTP/2.0","method":"GET","host":"mockup.lan:443","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67"],"Sec-Ch-Ua":["\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\"91\", \"Chromium\";v=\"91\""],"X-Forwarded-Proto":["https"],"Upgrade-Insecure-Requests":["1"],"X-Forwarded-For":["10.1.1.222"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-User":["?1"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Fetch-Dest":["document"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"X-Forwarded-Host":["mockup.udance.com.au"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"mockup.udance.com.au"}},"headers":{"Content-Type":["text/html; charset=UTF-8"],"Location":["https://mockup.lan/"],"Server":["Caddy"],"Status":["301 Moved Permanently"],"X-Powered-By":["PHP/7.4.20"],"X-Redirect-By":["WordPress"],"Content-Length":["0"],"Date":["Mon, 12 Jul 2021 10:21:27 GMT"]},"status":301}
This is what appears in the backend Caddy process log…
{"level":"debug","ts":"2021-07-12T18:21:26.987+0800","logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_addr":"10.1.1.4:25817","proto":"HTTP/2.0","method":"GET","host":"mockup.lan:443","uri":"/","headers":{"Accept-Language":["en-US,en;q=0.9"],"Sec-Fetch-Mode":["navigate"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["none"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67"],"X-Forwarded-For":["10.1.1.222"],"Sec-Fetch-Dest":["document"],"X-Forwarded-Host":["mockup.udance.com.au"],"Sec-Ch-Ua":["\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\"91\", \"Chromium\";v=\"91\""],"Sec-Ch-Ua-Mobile":["?0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-User":["?1"],"X-Forwarded-Proto":["https"],"Upgrade-Insecure-Requests":["1"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"mockup.lan"}},"method":"GET","uri":"/index.php"}
{"level":"debug","ts":"2021-07-12T18:21:26.987+0800","logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_addr":"10.1.1.4:25817","proto":"HTTP/2.0","method":"GET","host":"mockup.lan:443","uri":"/index.php","headers":{"X-Forwarded-Host":["mockup.udance.com.au"],"Sec-Ch-Ua":["\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\"91\", \"Chromium\";v=\"91\""],"X-Forwarded-For":["10.1.1.222, 10.1.1.4"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Mobile":["?0"],"X-Forwarded-Proto":["https"],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["none"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Fetch-Mode":["navigate"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"mockup.lan"}},"dial":"127.0.0.1:9000","env":{"AUTH_TYPE":"","CONTENT_LENGTH":"","CONTENT_TYPE":"","DOCUMENT_ROOT":"/usr/local/www/wordpress","DOCUMENT_URI":"/index.php","GATEWAY_INTERFACE":"CGI/1.1","HTTPS":"on","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.9","HTTP_HOST":"mockup.lan:443","HTTP_SEC_CH_UA":"\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\"91\", \"Chromium\";v=\"91\"","HTTP_SEC_CH_UA_MOBILE":"?0","HTTP_SEC_FETCH_DEST":"document","HTTP_SEC_FETCH_MODE":"navigate","HTTP_SEC_FETCH_SITE":"none","HTTP_SEC_FETCH_USER":"?1","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67","HTTP_X_FORWARDED_FOR":"10.1.1.222, 10.1.1.4","HTTP_X_FORWARDED_HOST":"mockup.udance.com.au","HTTP_X_FORWARDED_PROTO":"https","PATH_INFO":"","QUERY_STRING":"","REMOTE_ADDR":"10.1.1.4","REMOTE_HOST":"10.1.1.4","REMOTE_IDENT":"","REMOTE_PORT":"25817","REMOTE_USER":"","REQUEST_METHOD":"GET","REQUEST_SCHEME":"https","REQUEST_URI":"/","SCRIPT_FILENAME":"/usr/local/www/wordpress/index.php","SCRIPT_NAME":"/index.php","SERVER_NAME":"mockup.lan","SERVER_PORT":"443","SERVER_PROTOCOL":"HTTP/2.0","SERVER_SOFTWARE":"Caddy/v2.4.3","SSL_CIPHER":"TLS_AES_128_GCM_SHA256","SSL_PROTOCOL":"TLSv1.3"}}
{"level":"debug","ts":"2021-07-12T18:21:27.225+0800","logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_addr":"10.1.1.4:25817","proto":"HTTP/2.0","method":"POST","host":"mockup.lan:443","uri":"/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000","headers":{"Content-Type":["application/x-www-form-urlencoded"],"User-Agent":["WordPress/5.7.2; https://mockup.udance.com.au"],"Accept":["*/*"],"Referer":["https://mockup.udance.com.au/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000"],"Accept-Encoding":["deflate, gzip"],"Content-Length":["0"],"X-Forwarded-Host":["mockup.udance.com.au"],"X-Forwarded-Proto":["https"],"X-Forwarded-For":["10.1.1.50, 10.1.1.4"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"mockup.lan"}},"dial":"127.0.0.1:9000","env":{"AUTH_TYPE":"","CONTENT_LENGTH":"0","CONTENT_TYPE":"application/x-www-form-urlencoded","DOCUMENT_ROOT":"/usr/local/www/wordpress","DOCUMENT_URI":"/wp-cron.php","GATEWAY_INTERFACE":"CGI/1.1","HTTPS":"on","HTTP_ACCEPT":"*/*","HTTP_ACCEPT_ENCODING":"deflate, gzip","HTTP_CONTENT_LENGTH":"0","HTTP_CONTENT_TYPE":"application/x-www-form-urlencoded","HTTP_HOST":"mockup.lan:443","HTTP_REFERER":"https://mockup.udance.com.au/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000","HTTP_USER_AGENT":"WordPress/5.7.2; https://mockup.udance.com.au","HTTP_X_FORWARDED_FOR":"10.1.1.50, 10.1.1.4","HTTP_X_FORWARDED_HOST":"mockup.udance.com.au","HTTP_X_FORWARDED_PROTO":"https","PATH_INFO":"","QUERY_STRING":"doing_wp_cron=1626085287.1896800994873046875000","REMOTE_ADDR":"10.1.1.4","REMOTE_HOST":"10.1.1.4","REMOTE_IDENT":"","REMOTE_PORT":"25817","REMOTE_USER":"","REQUEST_METHOD":"POST","REQUEST_SCHEME":"https","REQUEST_URI":"/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000","SCRIPT_FILENAME":"/usr/local/www/wordpress/wp-cron.php","SCRIPT_NAME":"/wp-cron.php","SERVER_NAME":"mockup.lan","SERVER_PORT":"443","SERVER_PROTOCOL":"HTTP/2.0","SERVER_SOFTWARE":"Caddy/v2.4.3","SSL_CIPHER":"TLS_AES_128_GCM_SHA256","SSL_PROTOCOL":"TLSv1.3"}}
{"level":"debug","ts":"2021-07-12T18:21:27.226+0800","logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"127.0.0.1:9000","request":{"remote_addr":"10.1.1.4:25817","proto":"HTTP/2.0","method":"POST","host":"mockup.lan:443","uri":"/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000","headers":{"Accept-Encoding":["deflate, gzip"],"Content-Length":["0"],"Content-Type":["application/x-www-form-urlencoded"],"User-Agent":["WordPress/5.7.2; https://mockup.udance.com.au"],"Accept":["*/*"],"Referer":["https://mockup.udance.com.au/wp-cron.php?doing_wp_cron=1626085287.1896800994873046875000"],"X-Forwarded-Host":["mockup.udance.com.au"],"X-Forwarded-Proto":["https"],"X-Forwarded-For":["10.1.1.50, 10.1.1.4"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"mockup.lan"}},"headers":{"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"],"X-Powered-By":["PHP/7.4.20"]},"status":200}
{"level":"debug","ts":"2021-07-12T18:21:27.230+0800","logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"127.0.0.1:9000","request":{"remote_addr":"10.1.1.4:25817","proto":"HTTP/2.0","method":"GET","host":"mockup.lan:443","uri":"/index.php","headers":{"Sec-Fetch-User":["?1"],"X-Forwarded-Proto":["https"],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-Mode":["navigate"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["none"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Fetch-Dest":["document"],"X-Forwarded-Host":["mockup.udance.com.au"],"Sec-Ch-Ua":["\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\"91\", \"Chromium\";v=\"91\""],"X-Forwarded-For":["10.1.1.222, 10.1.1.4"],"Sec-Ch-Ua-Mobile":["?0"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"mockup.lan"}},"headers":{"X-Redirect-By":["WordPress"],"Location":["https://mockup.lan/"],"Status":["301 Moved Permanently"],"X-Powered-By":["PHP/7.4.20"],"Content-Type":["text/html; charset=UTF-8"]},"status":301}
{"level":"debug","ts":"2021-07-12T18:21:27.258+0800","logger":"http.stdlib","msg":"http: TLS handshake error from 10.1.1.222:57147: remote error: tls: unknown certificate"}
Somehow,mockup.udance.com.au
has got ‘lost in the wilderness’ and can’t seem to find its way back to the client. I’m hoping there’s a magic tweak to fix this