Caddy hosted wordpress behind caddy reverse proxy

1. The problem I’m having:

I am trying to host wordpress using Caddy on a private machine (192.168.1.25) and reverse proxy to that through my public machine. I believe my problem originates with something to do with https. The site does not load properly on my browser, and certain elements are left unloaded.

2. Error messages and/or full log output:

curl -vL storefront.thesenterium.com

* Host storefront.thesenterium.com:443 was resolved.
* IPv6: (none)
* IPv4: 104.8.177.120
*   Trying 104.8.177.120:443...
* Connected to storefront.thesenterium.com (104.8.177.120) port 443
* schannel: disabled automatic use of client certificate
* ALPN: curl offers http/1.1
* ALPN: server accepted http/1.1
* using HTTP/1.x
> GET / HTTP/1.1
> Host: storefront.thesenterium.com
> User-Agent: curl/8.6.0
> Accept: */*
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: failed to decrypt data, need more data
* schannel: failed to decrypt data, need more data
* schannel: failed to decrypt data, need more data
< HTTP/1.1 200 OK
< Alt-Svc: h3=":443"; ma=2592000
< Content-Type: text/html; charset=UTF-8
< Date: Wed, 24 Apr 2024 16:32:50 GMT
< Link: <https://storefront.thesenterium.com/index.php?rest_route=/>; rel="https://api.w.org/"
< Server: Caddy
< Server: Caddy
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
<!DOCTYPE html>

I do understand it says no browsers, but I thought this would be helpful.

3. Caddy version:

v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=

4. How I installed and ran Caddy:

Through cloudsmith packages

a. System environment:

Ubuntu Server 22.04 on both machines

b. Command:

Running as unit file

c. Service/unit/compose file:

[Unit]
Description=Caddy
Documentation=https://caddyserver.com/docs/
After=network.target network-online.target
Requires=network-online.target

[Service]
Type=notify
User=caddy
Group=caddy
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile --force
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target

d. My complete Caddy config:

Private machine (192.168.1.25)

http://storefront.thesenterium.com {
  root * /var/www/storefront
  php_fastcgi unix//run/php/php8.1-fpm.sock
  file_server
  encode gzip
}

Public machine: (storefront.thesenterium.com)

storefront.thesenterium.com {   
        reverse_proxy http://192.168.1.25 
}

5. Links to relevant resources:

The problem is the links in your HTML have http:// instead of https://.

I think you need to configure trusted_proxies in your private machine’s Caddyfile so it trusts requests coming from your public machine. That will make sure that the PHP env vars passed through include X-Forwarded-Proto: https which your PHP app should use to know to write the asset URLs with https:// instead.

1 Like

@francislavoie thank you for the response. This seems to be correct, I just assume I am implementing it wrong.

Should I change it to https, or leave as http?

storefront.thesenterium.com {   
        reverse_proxy http://192.168.1.25
}
{
        servers {
                trusted_proxies static 104.8.177.120/32 
        }
}

http://storefront.thesenterium.com {
  root * /var/www/storefront
  php_fastcgi unix//run/php/php8.1-fpm.sock
  file_server
  encode gzip
}

When trying https, it just gives bad gateway on the domain.

What’s in your Caddy logs?

Public caddy:

Apr 25 03:12:57 routing caddy[19397]: {"level":"warn","ts":1714014777.417627,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/share/caddy","instance":"7a7bf675-0567-40b1-bf43-020d32487986","try_again":1714101177.4176233,"try_again_in":86399.999999098}
Apr 25 03:12:57 routing caddy[19397]: {"level":"info","ts":1714014777.417796,"logger":"tls","msg":"finished cleaning storage units"}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.5209718,"logger":"events","msg":"event","name":"tls_get_certificate","id":"b6e26eea-753c-4adb-bfb9-d9c786fff970","origin":"tls","data":{"client_hello":{"CipherSuites":[4865,4867,4866,49195,49199,52393,52392,49196,49200,49162,49161,49171,49172,156,157,47,53],"ServerName":"storefront.thesenterium.com","SupportedCurves":[29,23,24,25,256,257],"SupportedPoints":"AA==","SignatureSchemes":[1027,1283,1539,2052,2053,2054,1025,1281,1537,515,513],"SupportedProtos":["h2","http/1.1"],"SupportedVersions":[772,771],"RemoteAddr":{"IP":"192.168.1.241","Port":51996,"Zone":""},"LocalAddr":{"IP":"104.8.177.120","Port":443,"Zone":""}}}}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.5213964,"logger":"tls.handshake","msg":"choosing certificate","identifier":"storefront.thesenterium.com","num_choices":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.5214343,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"storefront.thesenterium.com","subjects":["storefront.thesenterium.com"],"managed":true,"issuer_key":"acme-v02.api.letsencrypt.org-directory","hash":"dea22c3082dc4001b3f6d4cfe363435cfb374dea8b250b50980aeb5d0bb9a63a"}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.5214577,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"192.168.1.241","remote_port":"51996","subjects":["storefront.thesenterium.com"],"managed":true,"expiration":1721599649,"hash":"dea22c3082dc4001b3f6d4cfe363435cfb374dea8b250b50980aeb5d0bb9a63a"}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.5346048,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"192.168.1.25:80","total_upstreams":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.6159427,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"192.168.1.25:80","duration":0.081205601,"request":{"remote_ip":"192.168.1.241","remote_port":"51996","client_ip":"192.168.1.241","proto":"HTTP/2.0","method":"GET","host":"storefront.thesenterium.com","uri":"/","headers":{"Sec-Fetch-Dest":["document"],"Te":["trailers"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept-Language":["en-US,en;q=0.5"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Proto":["https"],"Cache-Control":["no-cache"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["cross-site"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Mode":["navigate"],"Prefer":["safe"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Pragma":["no-cache"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"storefront.thesenterium.com"}},"headers":{"Link":["<https://storefront.thesenterium.com/index.php?rest_route=/>; rel=\"https://api.w.org/\""],"Server":["Caddy"],"Vary":["Accept-Encoding"],"Date":["Thu, 25 Apr 2024 03:13:18 GMT"],"Content-Encoding":["gzip"],"Content-Type":["text/html; charset=UTF-8"]},"status":200}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.6329808,"logger":"events","msg":"event","name":"tls_get_certificate","id":"27de3bdd-f62d-4711-8a40-79911b788531","origin":"tls","data":{"client_hello":{"CipherSuites":[4865,4867,4866],"ServerName":"storefront.thesenterium.com","SupportedCurves":[29,23,24,25],"SupportedPoints":null,"SignatureSchemes":[1027,1283,1539,515,2052,2053,2054,1025,1281,1537,513],"SupportedProtos":["h3"],"SupportedVersions":[772],"RemoteAddr":{"IP":"192.168.1.241","Port":55927,"Zone":""},"LocalAddr":{"IP":"104.8.177.120","Port":443,"Zone":""}}}}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.634002,"logger":"tls.handshake","msg":"choosing certificate","identifier":"storefront.thesenterium.com","num_choices":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.6341681,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"storefront.thesenterium.com","subjects":["storefront.thesenterium.com"],"managed":true,"issuer_key":"acme-v02.api.letsencrypt.org-directory","hash":"dea22c3082dc4001b3f6d4cfe363435cfb374dea8b250b50980aeb5d0bb9a63a"}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.6342068,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"192.168.1.241","remote_port":"55927","subjects":["storefront.thesenterium.com"],"managed":true,"expiration":1721599649,"hash":"dea22c3082dc4001b3f6d4cfe363435cfb374dea8b250b50980aeb5d0bb9a63a"}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.7439704,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"192.168.1.25:80","total_upstreams":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.7495182,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"192.168.1.25:80","total_upstreams":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.7497616,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"192.168.1.25:80","total_upstreams":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.7573953,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"192.168.1.25:80","duration":0.013303815,"request":{"remote_ip":"192.168.1.241","remote_port":"55927","client_ip":"192.168.1.241","proto":"HTTP/3.0","method":"GET","host":"storefront.thesenterium.com","uri":"/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp","headers":{"Prefer":["safe"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Dest":["image"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Site":["cross-site"],"X-Forwarded-Proto":["https"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"Pragma":["no-cache"],"Accept-Language":["en-US,en;q=0.5"],"Accept":["image/avif,image/webp,*/*"],"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-For":["192.168.1.241"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"storefront.thesenterium.com"}},"headers":{"Accept-Ranges":["bytes"],"Content-Length":["199724"],"Content-Type":["image/webp"],"Etag":["\"s20ko24a3w\""],"Last-Modified":["Wed, 04 Oct 2023 17:02:26 GMT"],"Server":["Caddy"],"Date":["Thu, 25 Apr 2024 03:13:18 GMT"]},"status":200}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.7576082,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"192.168.1.25:80","duration":0.007976224,"request":{"remote_ip":"192.168.1.241","remote_port":"55927","client_ip":"192.168.1.241","proto":"HTTP/3.0","method":"GET","host":"storefront.thesenterium.com","uri":"/wp-content/themes/twentytwentyfour/assets/images/windows.webp","headers":{"X-Forwarded-Host":["storefront.thesenterium.com"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Language":["en-US,en;q=0.5"],"Accept-Encoding":["gzip, deflate, br"],"Prefer":["safe"],"X-Forwarded-For":["192.168.1.241"],"Pragma":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Site":["cross-site"],"X-Forwarded-Proto":["https"],"Accept":["image/avif,image/webp,*/*"],"Sec-Fetch-Dest":["image"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"storefront.thesenterium.com"}},"headers":{"Accept-Ranges":["bytes"],"Content-Length":["126244"],"Content-Type":["image/webp"],"Etag":["\"s20ko22pes\""],"Last-Modified":["Wed, 04 Oct 2023 17:02:26 GMT"],"Server":["Caddy"],"Date":["Thu, 25 Apr 2024 03:13:18 GMT"]},"status":200}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.7576501,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"192.168.1.25:80","duration":0.007781865,"request":{"remote_ip":"192.168.1.241","remote_port":"55927","client_ip":"192.168.1.241","proto":"HTTP/3.0","method":"GET","host":"storefront.thesenterium.com","uri":"/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp","headers":{"Sec-Fetch-Site":["cross-site"],"Accept-Language":["en-US,en;q=0.5"],"Prefer":["safe"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept":["image/avif,image/webp,*/*"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Dest":["image"],"Sec-Fetch-Mode":["no-cors"],"Pragma":["no-cache"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"storefront.thesenterium.com"}},"headers":{"Content-Length":["66482"],"Content-Type":["image/webp"],"Etag":["\"s20ko21faq\""],"Last-Modified":["Wed, 04 Oct 2023 17:02:26 GMT"],"Server":["Caddy"],"Date":["Thu, 25 Apr 2024 03:13:18 GMT"],"Accept-Ranges":["bytes"]},"status":200}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.854547,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"192.168.1.25:80","total_upstreams":1}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.8765326,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"192.168.1.25:80","duration":0.021830693,"request":{"remote_ip":"192.168.1.241","remote_port":"55927","client_ip":"192.168.1.241","proto":"HTTP/3.0","method":"GET","host":"storefront.thesenterium.com","uri":"/favicon.ico","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Alt-Used":["storefront.thesenterium.com"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept":["image/avif,image/webp,*/*"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["image"],"Pragma":["no-cache"],"Referer":["https://storefront.thesenterium.com/"],"Sec-Fetch-Site":["same-origin"],"Accept-Language":["en-US,en;q=0.5"],"Prefer":["safe"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Proto":["https"],"Cache-Control":["no-cache"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"storefront.thesenterium.com"}},"headers":{"X-Redirect-By":["WordPress"],"Date":["Thu, 25 Apr 2024 03:13:18 GMT"],"Content-Length":["0"],"Content-Type":["text/html; charset=UTF-8"],"Location":["http://storefront.thesenterium.com/favicon.ico/"],"Server":["Caddy"],"Status":["301 Moved Permanently"]},"status":301}
Apr 25 03:13:18 routing caddy[19397]: {"level":"debug","ts":1714014798.9503784,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"192.168.1.25:80","total_upstreams":1}
Apr 25 03:13:19 routing caddy[19397]: {"level":"debug","ts":1714014799.0293908,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"192.168.1.25:80","duration":0.078864288,"request":{"remote_ip":"192.168.1.241","remote_port":"55927","client_ip":"192.168.1.241","proto":"HTTP/3.0","method":"GET","host":"storefront.thesenterium.com","uri":"/favicon.ico/","headers":{"Sec-Fetch-Site":["cross-site"],"Sec-Fetch-Mode":["no-cors"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Sec-Fetch-Dest":["image"],"Cache-Control":["no-cache"],"Accept":["image/avif,image/webp,*/*"],"Accept-Language":["en-US,en;q=0.5"],"Pragma":["no-cache"],"X-Forwarded-For":["192.168.1.241"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Alt-Used":["storefront.thesenterium.com"],"Prefer":["safe"],"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"storefront.thesenterium.com"}},"headers":{"Link":["<https://storefront.thesenterium.com/index.php?rest_route=/>; rel=\"https://api.w.org/\""],"Server":["Caddy"],"Vary":["Accept-Encoding"],"Date":["Thu, 25 Apr 2024 03:13:19 GMT"],"Content-Encoding":["gzip"],"Content-Type":["text/html; charset=UTF-8"]},"status":200}

Private caddy:

Apr 25 03:15:15 storefront caddy[4962]: {"level":"warn","ts":1714014915.344691,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/share/caddy","instance":"78cfb80c-b318-41f9-9680-f4491ad2ddcf","try_again":1714101315.3446858,"try_again_in":86399.999998357}
Apr 25 03:15:15 storefront caddy[4962]: {"level":"info","ts":1714014915.344906,"logger":"tls","msg":"finished cleaning storage units"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.3445747,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/","headers":{"Sec-Fetch-User":["?1"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"Sec-Fetch-Dest":["document"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Proto":["https"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Site":["none"],"Accept-Encoding":["gzip, deflate, br"],"Pragma":["no-cache"],"Prefer":["safe"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Te":["trailers"]}},"method":"GET","uri":"/index.php"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.3446693,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"/run/php/php8.1-fpm.sock","total_upstreams":1}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.3450303,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Upgrade-Insecure-Requests":["1"],"X-Forwarded-Proto":["http"],"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-For":["192.168.1.21"],"Prefer":["safe"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Te":["trailers"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Dest":["document"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-User":["?1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Pragma":["no-cache"]}},"env":{"REMOTE_HOST":"192.168.1.21","REMOTE_PORT":"38494","REQUEST_METHOD":"GET","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","QUERY_STRING":"","SERVER_PROTOCOL":"HTTP/1.1","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","CONTENT_LENGTH":"","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_CACHE_CONTROL":"no-cache","HTTP_HOST":"storefront.thesenterium.com","REQUEST_SCHEME":"http","SERVER_NAME":"storefront.thesenterium.com","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_PRAGMA":"no-cache","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","HTTP_SEC_FETCH_DEST":"document","REMOTE_IDENT":"","REMOTE_USER":"","DOCUMENT_ROOT":"/var/www/storefront","REQUEST_URI":"/","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","HTTP_PREFER":"safe","REMOTE_ADDR":"192.168.1.21","PATH_INFO":"","SERVER_SOFTWARE":"Caddy/v2.7.6","DOCUMENT_URI":"/index.php","HTTP_SEC_FETCH_MODE":"navigate","HTTP_X_FORWARDED_FOR":"192.168.1.21","CONTENT_TYPE":"","HTTP_SEC_FETCH_SITE":"none","HTTP_X_FORWARDED_PROTO":"http","GATEWAY_INTERFACE":"CGI/1.1","SCRIPT_NAME":"/index.php","SERVER_PORT":"80","HTTP_SEC_FETCH_USER":"?1","HTTP_TE":"trailers","AUTH_TYPE":""},"dial":"/run/php/php8.1-fpm.sock","env":{"HTTP_HOST":"storefront.thesenterium.com","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_CACHE_CONTROL":"no-cache","HTTP_SEC_FETCH_DEST":"document","REMOTE_IDENT":"","REQUEST_SCHEME":"http","SERVER_NAME":"storefront.thesenterium.com","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_PRAGMA":"no-cache","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","HTTP_PREFER":"safe","REMOTE_ADDR":"192.168.1.21","REMOTE_USER":"","DOCUMENT_ROOT":"/var/www/storefront","REQUEST_URI":"/","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","CONTENT_TYPE":"","PATH_INFO":"","SERVER_SOFTWARE":"Caddy/v2.7.6","DOCUMENT_URI":"/index.php","HTTP_SEC_FETCH_MODE":"navigate","HTTP_X_FORWARDED_FOR":"192.168.1.21","HTTP_X_FORWARDED_PROTO":"http","HTTP_SEC_FETCH_SITE":"none","AUTH_TYPE":"","GATEWAY_INTERFACE":"CGI/1.1","SCRIPT_NAME":"/index.php","SERVER_PORT":"80","HTTP_SEC_FETCH_USER":"?1","HTTP_TE":"trailers","QUERY_STRING":"","REMOTE_HOST":"192.168.1.21","REMOTE_PORT":"38494","REQUEST_METHOD":"GET","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","CONTENT_LENGTH":"","SERVER_PROTOCOL":"HTTP/1.1","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"},"request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Pragma":["no-cache"],"X-Forwarded-Proto":["http"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Site":["none"],"X-Forwarded-For":["192.168.1.21"],"Prefer":["safe"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Te":["trailers"],"Accept-Language":["en-US,en;q=0.5"],"Sec-Fetch-Dest":["document"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-User":["?1"]}}}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.4297159,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"unix//run/php/php8.1-fpm.sock","duration":0.084942315,"request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"X-Forwarded-Proto":["http"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"Prefer":["safe"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Te":["trailers"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Site":["none"],"X-Forwarded-For":["192.168.1.21"],"Sec-Fetch-Dest":["document"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-User":["?1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Pragma":["no-cache"]}},"headers":{"Content-Type":["text/html; charset=UTF-8"],"Link":["<https://storefront.thesenterium.com/index.php?rest_route=/>; rel=\"https://api.w.org/\""]},"status":200}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.5954247,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/storefront","request_path":"/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp","result":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.5955367,"logger":"http.handlers.file_server","msg":"opening file","filename":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.6027615,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/storefront","request_path":"/wp-content/themes/twentytwentyfour/assets/images/windows.webp","result":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/windows.webp"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.6028488,"logger":"http.handlers.file_server","msg":"opening file","filename":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/windows.webp"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.635982,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/storefront","request_path":"/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp","result":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.6360612,"logger":"http.handlers.file_server","msg":"opening file","filename":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.7446296,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/favicon.ico","headers":{"X-Forwarded-Proto":["https"],"Accept-Language":["en-US,en;q=0.5"],"Referer":["https://storefront.thesenterium.com/"],"Sec-Fetch-Site":["same-origin"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Encoding":["gzip, deflate, br"],"Alt-Used":["storefront.thesenterium.com"],"Cache-Control":["no-cache"],"Prefer":["safe"],"Sec-Fetch-Mode":["no-cors"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept":["image/avif,image/webp,*/*"],"Sec-Fetch-Dest":["image"],"Pragma":["no-cache"]}},"method":"GET","uri":"/index.php"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.7447762,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"/run/php/php8.1-fpm.sock","total_upstreams":1}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.745025,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Site":["same-origin"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"X-Forwarded-For":["192.168.1.21"],"Sec-Fetch-Dest":["image"],"Accept":["image/avif,image/webp,*/*"],"Prefer":["safe"],"Pragma":["no-cache"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept-Language":["en-US,en;q=0.5"],"Referer":["https://storefront.thesenterium.com/"],"Accept-Encoding":["gzip, deflate, br"],"Alt-Used":["storefront.thesenterium.com"]}},"env":{"HTTP_ACCEPT_ENCODING":"gzip, deflate, br","CONTENT_LENGTH":"","REQUEST_METHOD":"GET","SERVER_NAME":"storefront.thesenterium.com","SERVER_PROTOCOL":"HTTP/1.1","SERVER_PORT":"80","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","HTTP_X_FORWARDED_PROTO":"http","HTTP_REFERER":"https://storefront.thesenterium.com/","REMOTE_IDENT":"","REMOTE_USER":"","REQUEST_URI":"/favicon.ico","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_ALT_USED":"storefront.thesenterium.com","AUTH_TYPE":"","REMOTE_ADDR":"192.168.1.21","REQUEST_SCHEME":"http","SERVER_SOFTWARE":"Caddy/v2.7.6","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_SEC_FETCH_MODE":"no-cors","HTTP_PRAGMA":"no-cache","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","CONTENT_TYPE":"","REMOTE_HOST":"192.168.1.21","REMOTE_PORT":"38494","HTTP_SEC_FETCH_DEST":"image","GATEWAY_INTERFACE":"CGI/1.1","DOCUMENT_ROOT":"/var/www/storefront","HTTP_HOST":"storefront.thesenterium.com","SCRIPT_NAME":"/index.php","HTTP_CACHE_CONTROL":"no-cache","HTTP_X_FORWARDED_FOR":"192.168.1.21","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_PREFER":"safe","PATH_INFO":"","DOCUMENT_URI":"/index.php","HTTP_SEC_FETCH_SITE":"same-origin","QUERY_STRING":""},"dial":"/run/php/php8.1-fpm.sock","env":{"GATEWAY_INTERFACE":"CGI/1.1","REMOTE_HOST":"192.168.1.21","REMOTE_PORT":"38494","HTTP_SEC_FETCH_DEST":"image","HTTP_PREFER":"safe","PATH_INFO":"","DOCUMENT_ROOT":"/var/www/storefront","HTTP_HOST":"storefront.thesenterium.com","SCRIPT_NAME":"/index.php","HTTP_CACHE_CONTROL":"no-cache","HTTP_X_FORWARDED_FOR":"192.168.1.21","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","QUERY_STRING":"","DOCUMENT_URI":"/index.php","HTTP_SEC_FETCH_SITE":"same-origin","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","CONTENT_LENGTH":"","HTTP_REFERER":"https://storefront.thesenterium.com/","REMOTE_IDENT":"","REQUEST_METHOD":"GET","SERVER_NAME":"storefront.thesenterium.com","SERVER_PROTOCOL":"HTTP/1.1","SERVER_PORT":"80","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","HTTP_X_FORWARDED_PROTO":"http","AUTH_TYPE":"","REMOTE_USER":"","REQUEST_URI":"/favicon.ico","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_ALT_USED":"storefront.thesenterium.com","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","CONTENT_TYPE":"","REMOTE_ADDR":"192.168.1.21","REQUEST_SCHEME":"http","SERVER_SOFTWARE":"Caddy/v2.7.6","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_SEC_FETCH_MODE":"no-cors","HTTP_PRAGMA":"no-cache"},"request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Pragma":["no-cache"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept-Language":["en-US,en;q=0.5"],"Referer":["https://storefront.thesenterium.com/"],"Accept-Encoding":["gzip, deflate, br"],"Alt-Used":["storefront.thesenterium.com"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Site":["same-origin"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"X-Forwarded-For":["192.168.1.21"],"Sec-Fetch-Dest":["image"],"Accept":["image/avif,image/webp,*/*"],"Prefer":["safe"]}}}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.7755938,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"unix//run/php/php8.1-fpm.sock","duration":0.030684636,"request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Sec-Fetch-Dest":["image"],"Accept":["image/avif,image/webp,*/*"],"Prefer":["safe"],"Pragma":["no-cache"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Alt-Used":["storefront.thesenterium.com"],"Accept-Language":["en-US,en;q=0.5"],"Referer":["https://storefront.thesenterium.com/"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Mode":["no-cors"],"X-Forwarded-For":["192.168.1.21"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Site":["same-origin"],"Cache-Control":["no-cache"]}},"headers":{"Location":["http://storefront.thesenterium.com/favicon.ico/"],"Status":["301 Moved Permanently"],"Content-Type":["text/html; charset=UTF-8"],"X-Redirect-By":["WordPress"]},"status":301}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.8641672,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/favicon.ico/","headers":{"Pragma":["no-cache"],"Prefer":["safe"],"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-Proto":["https"],"Accept":["image/avif,image/webp,*/*"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["cross-site"],"X-Forwarded-For":["192.168.1.241"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Language":["en-US,en;q=0.5"],"Alt-Used":["storefront.thesenterium.com"],"Sec-Fetch-Dest":["image"]}},"method":"GET","uri":"/index.php"}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.864265,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"/run/php/php8.1-fpm.sock","total_upstreams":1}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.864436,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Sec-Fetch-Dest":["image"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Pragma":["no-cache"],"Prefer":["safe"],"Cache-Control":["no-cache"],"Sec-Fetch-Site":["cross-site"],"Sec-Fetch-Mode":["no-cors"],"Accept-Language":["en-US,en;q=0.5"],"X-Forwarded-For":["192.168.1.21"],"Accept":["image/avif,image/webp,*/*"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Alt-Used":["storefront.thesenterium.com"],"X-Forwarded-Proto":["http"],"Accept-Encoding":["gzip, deflate, br"]}},"env":{"CONTENT_LENGTH":"","HTTP_HOST":"storefront.thesenterium.com","REQUEST_URI":"/favicon.ico/","HTTP_SEC_FETCH_SITE":"cross-site","HTTP_X_FORWARDED_PROTO":"http","GATEWAY_INTERFACE":"CGI/1.1","REMOTE_IDENT":"","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","REMOTE_ADDR":"192.168.1.21","SERVER_PROTOCOL":"HTTP/1.1","SERVER_NAME":"storefront.thesenterium.com","DOCUMENT_ROOT":"/var/www/storefront","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_SEC_FETCH_MODE":"no-cors","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_CACHE_CONTROL":"no-cache","PATH_INFO":"","REQUEST_METHOD":"GET","SCRIPT_NAME":"/index.php","SERVER_PORT":"80","HTTP_SEC_FETCH_DEST":"image","HTTP_PREFER":"safe","CONTENT_TYPE":"","REMOTE_PORT":"38494","DOCUMENT_URI":"/index.php","HTTP_X_FORWARDED_FOR":"192.168.1.21","HTTP_ALT_USED":"storefront.thesenterium.com","AUTH_TYPE":"","QUERY_STRING":"","SERVER_SOFTWARE":"Caddy/v2.7.6","REMOTE_HOST":"192.168.1.21","REQUEST_SCHEME":"http","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_PRAGMA":"no-cache","REMOTE_USER":"","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5"},"dial":"/run/php/php8.1-fpm.sock","env":{"CONTENT_LENGTH":"","REMOTE_IDENT":"","HTTP_HOST":"storefront.thesenterium.com","REQUEST_URI":"/favicon.ico/","HTTP_SEC_FETCH_SITE":"cross-site","HTTP_X_FORWARDED_PROTO":"http","GATEWAY_INTERFACE":"CGI/1.1","SERVER_PROTOCOL":"HTTP/1.1","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","REMOTE_ADDR":"192.168.1.21","REQUEST_METHOD":"GET","SERVER_NAME":"storefront.thesenterium.com","DOCUMENT_ROOT":"/var/www/storefront","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_SEC_FETCH_MODE":"no-cors","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_CACHE_CONTROL":"no-cache","PATH_INFO":"","REMOTE_PORT":"38494","SCRIPT_NAME":"/index.php","SERVER_PORT":"80","HTTP_SEC_FETCH_DEST":"image","HTTP_PREFER":"safe","CONTENT_TYPE":"","QUERY_STRING":"","DOCUMENT_URI":"/index.php","HTTP_X_FORWARDED_FOR":"192.168.1.21","HTTP_ALT_USED":"storefront.thesenterium.com","AUTH_TYPE":"","REQUEST_SCHEME":"http","SERVER_SOFTWARE":"Caddy/v2.7.6","REMOTE_HOST":"192.168.1.21","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_PRAGMA":"no-cache","REMOTE_USER":""},"request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Sec-Fetch-Mode":["no-cors"],"Accept-Language":["en-US,en;q=0.5"],"X-Forwarded-For":["192.168.1.21"],"Accept":["image/avif,image/webp,*/*"],"Sec-Fetch-Site":["cross-site"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Alt-Used":["storefront.thesenterium.com"],"X-Forwarded-Proto":["http"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Dest":["image"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Pragma":["no-cache"],"Prefer":["safe"],"Cache-Control":["no-cache"]}}}
Apr 25 03:15:29 storefront caddy[4962]: {"level":"debug","ts":1714014929.9395163,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"unix//run/php/php8.1-fpm.sock","duration":0.075128524,"request":{"remote_ip":"192.168.1.21","remote_port":"38494","client_ip":"192.168.1.21","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Pragma":["no-cache"],"Prefer":["safe"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"Accept-Language":["en-US,en;q=0.5"],"X-Forwarded-For":["192.168.1.21"],"Accept":["image/avif,image/webp,*/*"],"Sec-Fetch-Site":["cross-site"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Alt-Used":["storefront.thesenterium.com"],"X-Forwarded-Proto":["http"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Dest":["image"],"X-Forwarded-Host":["storefront.thesenterium.com"]}},"headers":{"Content-Type":["text/html; charset=UTF-8"],"Link":["<https://storefront.thesenterium.com/index.php?rest_route=/>; rel=\"https://api.w.org/\""]},"status":200}

That was with debug mode enabled. journalctl -u caddy --no-pager
Please let me know if there is anything else I can provide


It looks like that for reference. Those things in the top right are not loading properly.

I think this IP address is wrong. Your logs show that your private Caddy is receiving requests from 192.168.1.21. you need to trust that IP.

Private:

Apr 25 03:40:34 storefront caddy[5090]: {"level":"warn","ts":1714016434.3053608,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/var/lib/caddy/.local/share/caddy","instance":"78cfb80c-b318-41f9-9680-f4491ad2ddcf","try_again":1714102834.3053575,"try_again_in":86399.999999022}
Apr 25 03:40:34 storefront caddy[5090]: {"level":"info","ts":1714016434.3055325,"logger":"tls","msg":"finished cleaning storage units"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.37988,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/","headers":{"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Te":["trailers"],"X-Forwarded-Proto":["https"],"Accept-Encoding":["gzip, deflate, br"],"Pragma":["no-cache"],"Prefer":["safe"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Host":["storefront.thesenterium.com"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Language":["en-US,en;q=0.5"],"Sec-Fetch-Dest":["document"],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Sec-Fetch-Site":["cross-site"]}},"method":"GET","uri":"/index.php"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.3800194,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"/run/php/php8.1-fpm.sock","total_upstreams":1}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.380328,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-Proto":["https"],"Prefer":["safe"],"Te":["trailers"],"Sec-Fetch-Dest":["document"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Pragma":["no-cache"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Language":["en-US,en;q=0.5"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["cross-site"]}},"env":{"REMOTE_IDENT":"","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_PREFER":"safe","REMOTE_USER":"","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","PATH_INFO":"","QUERY_STRING":"","REMOTE_HOST":"192.168.1.21","AUTH_TYPE":"","HTTP_SEC_FETCH_DEST":"document","HTTP_TE":"trailers","REMOTE_ADDR":"192.168.1.21","SERVER_SOFTWARE":"Caddy/v2.7.6","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","GATEWAY_INTERFACE":"CGI/1.1","CONTENT_TYPE":"","SERVER_PORT":"80","SCRIPT_NAME":"/index.php","HTTP_SEC_FETCH_MODE":"navigate","HTTP_PRAGMA":"no-cache","CONTENT_LENGTH":"","REMOTE_PORT":"46340","REQUEST_URI":"/","DOCUMENT_URI":"/index.php","HTTP_HOST":"storefront.thesenterium.com","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_SEC_FETCH_SITE":"cross-site","REQUEST_SCHEME":"http","SERVER_PROTOCOL":"HTTP/1.1","DOCUMENT_ROOT":"/var/www/storefront","HTTP_X_FORWARDED_FOR":"192.168.1.241, 192.168.1.21","HTTP_X_FORWARDED_PROTO":"https","REQUEST_METHOD":"GET","SERVER_NAME":"storefront.thesenterium.com","HTTP_CACHE_CONTROL":"no-cache"},"dial":"/run/php/php8.1-fpm.sock","env":{"CONTENT_TYPE":"","SERVER_PORT":"80","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","GATEWAY_INTERFACE":"CGI/1.1","REMOTE_PORT":"46340","REQUEST_URI":"/","SCRIPT_NAME":"/index.php","HTTP_SEC_FETCH_MODE":"navigate","HTTP_PRAGMA":"no-cache","CONTENT_LENGTH":"","SERVER_PROTOCOL":"HTTP/1.1","DOCUMENT_ROOT":"/var/www/storefront","DOCUMENT_URI":"/index.php","HTTP_HOST":"storefront.thesenterium.com","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_SEC_FETCH_SITE":"cross-site","REQUEST_SCHEME":"http","SERVER_NAME":"storefront.thesenterium.com","HTTP_CACHE_CONTROL":"no-cache","HTTP_X_FORWARDED_FOR":"192.168.1.241, 192.168.1.21","HTTP_X_FORWARDED_PROTO":"https","REQUEST_METHOD":"GET","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_PREFER":"safe","REMOTE_IDENT":"","QUERY_STRING":"","REMOTE_HOST":"192.168.1.21","REMOTE_USER":"","HTTP_ACCEPT":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","PATH_INFO":"","HTTP_SEC_FETCH_DEST":"document","HTTP_TE":"trailers","AUTH_TYPE":"","SERVER_SOFTWARE":"Caddy/v2.7.6","REMOTE_ADDR":"192.168.1.21"},"request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Pragma":["no-cache"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Dest":["document"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Accept-Language":["en-US,en;q=0.5"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["cross-site"],"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-Proto":["https"],"Prefer":["safe"],"Te":["trailers"]}}}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.4557867,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"unix//run/php/php8.1-fpm.sock","duration":0.075666046,"request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Prefer":["safe"],"Te":["trailers"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["navigate"],"Pragma":["no-cache"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Dest":["document"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Accept-Language":["en-US,en;q=0.5"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["cross-site"],"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-Proto":["https"]}},"headers":{"Content-Type":["text/html; charset=UTF-8"],"Link":["<https://storefront.thesenterium.com/index.php?rest_route=/>; rel=\"https://api.w.org/\""]},"status":200}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.5719976,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/storefront","request_path":"/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp","result":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.57211,"logger":"http.handlers.file_server","msg":"opening file","filename":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.5779963,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/storefront","request_path":"/wp-content/themes/twentytwentyfour/assets/images/windows.webp","result":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/windows.webp"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.5780814,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/storefront","request_path":"/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp","result":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.578125,"logger":"http.handlers.file_server","msg":"opening file","filename":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/windows.webp"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.5781426,"logger":"http.handlers.file_server","msg":"opening file","filename":"/var/www/storefront/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.6912744,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/favicon.ico","headers":{"Sec-Fetch-Mode":["no-cors"],"Te":["trailers"],"Prefer":["safe"],"Sec-Fetch-Dest":["image"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-For":["192.168.1.241"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept":["image/avif,image/webp,*/*"],"Accept-Language":["en-US,en;q=0.5"],"Pragma":["no-cache"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Cache-Control":["no-cache"],"Referer":["https://storefront.thesenterium.com/"]}},"method":"GET","uri":"/index.php"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.6913774,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"/run/php/php8.1-fpm.sock","total_upstreams":1}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.6915593,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-Proto":["https"],"Accept":["image/avif,image/webp,*/*"],"Sec-Fetch-Dest":["image"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"Referer":["https://storefront.thesenterium.com/"],"Te":["trailers"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["same-origin"],"Accept-Language":["en-US,en;q=0.5"],"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Mode":["no-cors"],"Cache-Control":["no-cache"],"Prefer":["safe"]}},"env":{"SERVER_PROTOCOL":"HTTP/1.1","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","AUTH_TYPE":"","HTTP_TE":"trailers","HTTP_X_FORWARDED_FOR":"192.168.1.241, 192.168.1.21","REMOTE_HOST":"192.168.1.21","SCRIPT_NAME":"/index.php","HTTP_SEC_FETCH_DEST":"image","HTTP_SEC_FETCH_SITE":"same-origin","HTTP_PREFER":"safe","HTTP_X_FORWARDED_PROTO":"https","REQUEST_URI":"/favicon.ico","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","CONTENT_LENGTH":"","REMOTE_ADDR":"192.168.1.21","SERVER_SOFTWARE":"Caddy/v2.7.6","HTTP_HOST":"storefront.thesenterium.com","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_SEC_FETCH_MODE":"no-cors","QUERY_STRING":"","REMOTE_USER":"","REQUEST_SCHEME":"http","SERVER_NAME":"storefront.thesenterium.com","DOCUMENT_URI":"/index.php","REMOTE_IDENT":"","PATH_INFO":"","REQUEST_METHOD":"GET","SERVER_PORT":"80","HTTP_REFERER":"https://storefront.thesenterium.com/","HTTP_CACHE_CONTROL":"no-cache","GATEWAY_INTERFACE":"CGI/1.1","CONTENT_TYPE":"","REMOTE_PORT":"46340","DOCUMENT_ROOT":"/var/www/storefront","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_PRAGMA":"no-cache"},"dial":"/run/php/php8.1-fpm.sock","env":{"GATEWAY_INTERFACE":"CGI/1.1","CONTENT_TYPE":"","REMOTE_PORT":"46340","DOCUMENT_ROOT":"/var/www/storefront","SCRIPT_FILENAME":"/var/www/storefront/index.php","HTTP_PRAGMA":"no-cache","HTTP_CACHE_CONTROL":"no-cache","SERVER_PROTOCOL":"HTTP/1.1","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","AUTH_TYPE":"","HTTP_TE":"trailers","HTTP_X_FORWARDED_FOR":"192.168.1.241, 192.168.1.21","REMOTE_HOST":"192.168.1.21","SCRIPT_NAME":"/index.php","HTTP_SEC_FETCH_DEST":"image","HTTP_SEC_FETCH_SITE":"same-origin","HTTP_PREFER":"safe","HTTP_X_FORWARDED_PROTO":"https","REQUEST_URI":"/favicon.ico","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","CONTENT_LENGTH":"","REMOTE_ADDR":"192.168.1.21","SERVER_SOFTWARE":"Caddy/v2.7.6","HTTP_HOST":"storefront.thesenterium.com","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_SEC_FETCH_MODE":"no-cors","QUERY_STRING":"","REMOTE_USER":"","REQUEST_SCHEME":"http","SERVER_NAME":"storefront.thesenterium.com","DOCUMENT_URI":"/index.php","REMOTE_IDENT":"","PATH_INFO":"","REQUEST_METHOD":"GET","SERVER_PORT":"80","HTTP_REFERER":"https://storefront.thesenterium.com/"},"request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"X-Forwarded-Proto":["https"],"Accept":["image/avif,image/webp,*/*"],"X-Forwarded-Host":["storefront.thesenterium.com"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"Referer":["https://storefront.thesenterium.com/"],"Te":["trailers"],"Sec-Fetch-Dest":["image"],"Sec-Fetch-Site":["same-origin"],"Accept-Language":["en-US,en;q=0.5"],"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Mode":["no-cors"],"Accept-Encoding":["gzip, deflate, br"],"Cache-Control":["no-cache"],"Prefer":["safe"]}}}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.7198124,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"unix//run/php/php8.1-fpm.sock","duration":0.028338818,"request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"Referer":["https://storefront.thesenterium.com/"],"Te":["trailers"],"Sec-Fetch-Dest":["image"],"Sec-Fetch-Site":["same-origin"],"Accept-Language":["en-US,en;q=0.5"],"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Mode":["no-cors"],"Accept-Encoding":["gzip, deflate, br"],"Cache-Control":["no-cache"],"Prefer":["safe"],"X-Forwarded-Proto":["https"],"Accept":["image/avif,image/webp,*/*"],"X-Forwarded-Host":["storefront.thesenterium.com"]}},"headers":{"Status":["301 Moved Permanently"],"Content-Type":["text/html; charset=UTF-8"],"X-Redirect-By":["WordPress"],"Location":["http://storefront.thesenterium.com/favicon.ico/"]},"status":301}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.7834275,"logger":"http.handlers.rewrite","msg":"rewrote request","request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/favicon.ico/","headers":{"Accept-Encoding":["gzip, deflate, br"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Accept":["image/avif,image/webp,*/*"],"Prefer":["safe"],"Sec-Fetch-Dest":["image"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"Pragma":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"X-Forwarded-For":["192.168.1.241"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Sec-Fetch-Site":["cross-site"],"Te":["trailers"],"X-Forwarded-Proto":["https"]}},"method":"GET","uri":"/index.php"}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.7835248,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"/run/php/php8.1-fpm.sock","total_upstreams":1}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.7837029,"logger":"http.reverse_proxy.transport.fastcgi","msg":"roundtrip","request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Sec-Fetch-Mode":["no-cors"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Encoding":["gzip, deflate, br"],"Prefer":["safe"],"X-Forwarded-Proto":["https"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"Sec-Fetch-Site":["cross-site"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Sec-Fetch-Dest":["image"],"Pragma":["no-cache"],"Accept":["image/avif,image/webp,*/*"],"Te":["trailers"]}},"env":{"SCRIPT_NAME":"/index.php","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","QUERY_STRING":"","SERVER_NAME":"storefront.thesenterium.com","SERVER_PROTOCOL":"HTTP/1.1","HTTP_SEC_FETCH_DEST":"image","CONTENT_LENGTH":"","REQUEST_URI":"/favicon.ico/","HTTP_TE":"trailers","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","AUTH_TYPE":"","GATEWAY_INTERFACE":"CGI/1.1","REMOTE_ADDR":"192.168.1.21","HTTP_CACHE_CONTROL":"no-cache","SCRIPT_FILENAME":"/var/www/storefront/index.php","SERVER_PORT":"80","HTTP_SEC_FETCH_MODE":"no-cors","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","REMOTE_IDENT":"","REMOTE_PORT":"46340","REMOTE_USER":"","REQUEST_METHOD":"GET","HTTP_PREFER":"safe","HTTP_SEC_FETCH_SITE":"cross-site","REMOTE_HOST":"192.168.1.21","REQUEST_SCHEME":"http","DOCUMENT_ROOT":"/var/www/storefront","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_X_FORWARDED_PROTO":"https","HTTP_PRAGMA":"no-cache","CONTENT_TYPE":"","PATH_INFO":"","DOCUMENT_URI":"/index.php","HTTP_HOST":"storefront.thesenterium.com","SERVER_SOFTWARE":"Caddy/v2.7.6","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","HTTP_X_FORWARDED_FOR":"192.168.1.241, 192.168.1.21"},"dial":"/run/php/php8.1-fpm.sock","env":{"REQUEST_METHOD":"GET","SCRIPT_FILENAME":"/var/www/storefront/index.php","SERVER_PORT":"80","HTTP_SEC_FETCH_MODE":"no-cors","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","REMOTE_IDENT":"","REMOTE_PORT":"46340","REMOTE_USER":"","HTTP_PREFER":"safe","HTTP_ACCEPT":"image/avif,image/webp,*/*","HTTP_SEC_FETCH_SITE":"cross-site","REMOTE_HOST":"192.168.1.21","REQUEST_SCHEME":"http","DOCUMENT_ROOT":"/var/www/storefront","HTTP_HOST":"storefront.thesenterium.com","HTTP_X_FORWARDED_PROTO":"https","HTTP_PRAGMA":"no-cache","CONTENT_TYPE":"","PATH_INFO":"","DOCUMENT_URI":"/index.php","SERVER_SOFTWARE":"Caddy/v2.7.6","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","HTTP_X_FORWARDED_FOR":"192.168.1.241, 192.168.1.21","SCRIPT_NAME":"/index.php","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","HTTP_SEC_FETCH_DEST":"image","QUERY_STRING":"","SERVER_NAME":"storefront.thesenterium.com","SERVER_PROTOCOL":"HTTP/1.1","CONTENT_LENGTH":"","REQUEST_URI":"/favicon.ico/","HTTP_TE":"trailers","HTTP_CACHE_CONTROL":"no-cache","HTTP_X_FORWARDED_HOST":"storefront.thesenterium.com","AUTH_TYPE":"","GATEWAY_INTERFACE":"CGI/1.1","REMOTE_ADDR":"192.168.1.21"},"request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Accept":["image/avif,image/webp,*/*"],"Te":["trailers"],"Sec-Fetch-Mode":["no-cors"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"Accept-Encoding":["gzip, deflate, br"],"Prefer":["safe"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Sec-Fetch-Dest":["image"],"Pragma":["no-cache"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"Sec-Fetch-Site":["cross-site"]}}}
Apr 25 03:40:35 storefront caddy[5090]: {"level":"debug","ts":1714016435.857976,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"unix//run/php/php8.1-fpm.sock","duration":0.074352425,"request":{"remote_ip":"192.168.1.21","remote_port":"46340","client_ip":"192.168.1.241","proto":"HTTP/1.1","method":"GET","host":"storefront.thesenterium.com","uri":"/index.php","headers":{"Accept":["image/avif,image/webp,*/*"],"Te":["trailers"],"Sec-Fetch-Mode":["no-cors"],"Accept-Language":["en-US,en;q=0.5"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"],"Accept-Encoding":["gzip, deflate, br"],"Prefer":["safe"],"X-Forwarded-Proto":["https"],"X-Forwarded-For":["192.168.1.241, 192.168.1.21"],"Sec-Fetch-Site":["cross-site"],"X-Forwarded-Host":["storefront.thesenterium.com"],"Sec-Fetch-Dest":["image"],"Pragma":["no-cache"]}},"headers":{"Content-Type":["text/html; charset=UTF-8"],"Link":["<https://storefront.thesenterium.com/index.php?rest_route=/>; rel=\"https://api.w.org/\""]},"status":200}

Same response with updated IP on the browser. I wasn’t sure which address it would come from (the public machine has 2 addresses assigned)

* Host storefront.thesenterium.com:80 was resolved.
* IPv6: (none)
* IPv4: 104.8.177.120
*   Trying 104.8.177.120:80...
* Connected to storefront.thesenterium.com (104.8.177.120) port 80
> GET / HTTP/1.1
> Host: storefront.thesenterium.com
> User-Agent: curl/8.6.0
> Accept: */*
>
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://storefront.thesenterium.com/
< Server: Caddy
< Date: Thu, 25 Apr 2024 03:41:47 GMT
< Content-Length: 0
<
* Closing connection
* Clear auth, redirects to port from 80 to 443
* Issue another request to this URL: 'https://storefront.thesenterium.com/'
* Host storefront.thesenterium.com:443 was resolved.
* IPv6: (none)
* IPv4: 104.8.177.120
*   Trying 104.8.177.120:443...
* Connected to storefront.thesenterium.com (104.8.177.120) port 443
* schannel: disabled automatic use of client certificate
* ALPN: curl offers http/1.1
* ALPN: server accepted http/1.1
* using HTTP/1.x
> GET / HTTP/1.1
> Host: storefront.thesenterium.com
> User-Agent: curl/8.6.0
> Accept: */*
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: failed to decrypt data, need more data
* schannel: failed to decrypt data, need more data
< HTTP/1.1 200 OK
< Alt-Svc: h3=":443"; ma=2592000
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 25 Apr 2024 03:41:47 GMT
< Link: <https://storefront.thesenterium.com/index.php?rest_route=/>; rel="https://api.w.org/"
< Server: Caddy
< Server: Caddy
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
<!DOCTYPE html>
<html lang="en-US">
<head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name='robots' content='max-image-preview:large' />
<title>Storefront</title>
<link rel="alternate" type="application/rss+xml" title="Storefront &raquo; Feed" href="https://storefront.thesenterium.com/?feed=rss2" />
<link rel="alternate" type="application/rss+xml" title="Storefront &raquo; Comments Feed" href="https://storefront.thesenterium.com/?feed=comments-rss2" />
<script>
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/storefront.thesenterium.com\/wp-includes\/js\/wp-e

cURL response much longer, but that is start. Nothing else besides normal html

Hi @aidenfarley ,

The issue is that you need to configure Wordpress with the HTTPS url. Otherwise all resources will be loaded using HTTP, which obviously fails.

Here is my caddy config for a wordpress site I run, though I am not using docker.

www.redacted.net:443 redacted.net:443 {
	tls /etc/letsencrypt/live/redacted.net/fullchain.pem /etc/letsencrypt/live/redacted.net/privkey.pem {
	}
	log {
		output file /var/log/caddy/redacted.net_443.log {
			roll_size 100MiB
			roll_keep_for 100d
		}
		format json
	}
	root * /var/www/domains/redacted.net/htdocs/wordpress

	# Deny access to important files. 
	# Note that xmlrpc.php needs to be available if you use the Wordpress app or other tools to post/administer your site apart from wp-admin.
	@denied {
		path /xmlrpc.php
		path *.sql
		path /wp-config.php
		path /wp-content/uploads/*.php
		path /wp-admin/includes/*.php
		path /wp-includes/*.php
	}
   @www {
        host www.redacted.net
    }

   @cache {
		path *.webp *.jpg *.jpeg *.avif *.woff *.woff2
	}

    redir @www https://redacted.net/ permanent
	respond @denied 404

	header {
		Strict-Transport-Security "max-age=31968000; includeSubDomains; preload"
		X-Frame-Options SAMEORIGIN
	}
	header @cache {
		Cache-Control max-age=2592000
	}
	
	php_fastcgi unix//var/run/php-fpm/fpm-wordpress.socket
	file_server
}

www.redacted.net:80 redacted.net:80 {
	log {
		output file /var/log/caddy/redacted.net_80.log {
			roll_size 100MiB
			roll_keep_for 100d
		}
		format json
	}
	root * /var/www/domains/redacted.net/htdocs/
	file_server
	
	# Required if you use certbot with basic http. I nowadays use dns verification, which means I can skip the @https exception.
	@https not path /.well-known/*
	redir @https https://redacted.net/ permanent
}

I do already have this. The problem the dual-caddy configuration.
The public machine should be authoring the certificate, since the private machine cannot be accessed publicly.

The issue is still in your WP config. It is easy to check. Load https://storefront.thesenterium.com/ and check the source code. You can see several includes with HTTP:// instead of HTTPS://. That is not something Caddy can change.

From your curl example above:

source":{"concatemoji":"http:\/\/storefront.thesenterium.com\/wp-includes\/js\/....

Well if my Caddy config is HTTP, I assume that’s where the HTTP requests come from. Loading it up with a configuration that skips the public machine works, and does not issue any HTTP requests. It is not an WP configuration issue unless I am misunderstanding something.

Even if caddy uses http requests upstream, it is wordpress itself that generates the html response that is including http:// resources. How do you think caddy can change the html output from php?

Look at HTTPS – Advanced Administration Handbook | Developer.WordPress.org

If WordPress is hosted behind a reverse proxy that provides SSL, but is hosted itself without SSL, these options will initially send any requests into an infinite redirect loop. To avoid this, you may configure WordPress to recognize the HTTP_X_FORWARDED_PROTO header (assuming you have properly configured the reverse proxy to set that header).

And also https - How do I handle SSL properly when WP is behind a reverse proxy? - WordPress Development Stack Exchange

That was it! Thank you so much.
One last question. Is there any way to configure Caddy to rewrite whatever protocol in order to prevent any configuration needing to be changed inside of WP?

You can modify or add headers in the reverse_proxy statement.

You don’t need to override any headers, just make sure trusted_proxies is set correctly like I said earlier, then X-Forwarded-Proto (a.k.a. HTTP_X_FORWARDED_PROTO inside PHP) will be set correctly. That’s all.

1 Like