1. The problem I’m having:
Caddy is severing only a blank page with no content.
Dosn’t seem to be seeing the index file or any of the other html files in the root directory.
2. Error messages and/or full log output:
e"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Accept-Language":["en-US,en;q=0.9"],"Priority":["u=0, i"],"X-Forwarded-For":["2607:9880:4018:4:9ca5:e6d4:9f8f:b4ef"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua-Mobile":["?0"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, br"],"X-Forwarded-Proto":["https"],"Cf-Visitor":["{\"scheme\":\"https\"}"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"www.camrymabon.io"}},"bytes_read":0,"user_id":"","duration":0.000005786,"size":0,"status":0,"resp_headers":{"Alt-Svc":["h3=\":443\"; ma=2592000"],"Server":["Caddy"]}}
Oct 08 17:00:43 web-host caddy[891]: {"level":"info","ts":1696798843.37629,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"185.36.81.33","remote_port":"49600","client_ip":"185.36.81.33","proto":"HTTP/1.1","method":"GET","host":"174.116.118.41","uri":"/","headers":{"Accept":["*/*"],"Connection":["keep-alive"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Accept-Language":["en US,en;q=0.9,sv;q=0.8"],"Accept-Encoding":["gzip, deflate","gzip, deflate"]}},"bytes_read":0,"user_id":"","duration":0.000093495,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://174.116.118.41/"],"Content-Type":[]}}
(END)
e"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Accept-Language":["en-US,en;q=0.9"],"Priority":["u=0, i"],"X-Forwarded-For":["2607:9880:4018:4:9ca5:e6d4:9f8f:b4ef"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua-Mobile":["?0"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, br"],"X-Forwarded-Proto":["https"],"Cf-Visitor":["{\"scheme\":\"https\"}"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"www.camrymabon.io"}},"bytes_read":0,"user_id":"","duration":0.000005786,"size":0,"status":0,"resp_headers":{"Alt-Svc":["h3=\":443\"; ma=2592000"],"Server":["Caddy"]}}
Oct 08 17:00:43 web-host caddy[891]: {"level":"info","ts":1696798843.37629,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"185.36.81.33","remote_port":"49600","client_ip":"185.36.81.33","proto":"HTTP/1.1","method":"GET","host":"174.116.118.41","uri":"/","headers":{"Accept":["*/*"],"Connection":["keep-alive"],"X-Requested-With":["XMLHttpRequest"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"],"Content-Type":["application/x-www-form-urlencoded; charset=UTF-8"],"Accept-Language":["en US,en;q=0.9,sv;q=0.8"],"Accept-Encoding":["gzip, deflate","gzip, deflate"]}},"bytes_read":0,"user_id":"","duration":0.000093495,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://174.116.118.41/"],"Content-Type":[]}}
(END)
Curl gives me the following output:
Uri: www.camrymabon.io
StatusCode : 200
StatusDescription : OK
Content : {}
RawContent : HTTP/1.1 200 OK
Connection: keep-alive
alt-svc: h3=":443"; ma=86400
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudf
lare.com\/report\/v3?s=HyCxxAqd5IzpxexA%2Be5EOre...
Headers : {[Connection, keep-alive], [alt-svc, h3=":443";
ma=86400], [CF-Cache-Status, DYNAMIC], [Report-To, {"en
dpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/repor
t\/v3?s=HyCxxAqd5IzpxexA%2Be5EOretiaJCE7tMtqYFIHIV8mBVC
eW68xQlqcwnQ6G3qj4AyAh34f22iEHoDf3cpDE0LEQmgiumvcj3%2Bh
aVnJ%2FWRmeMbGFcSaS1eF%2B5l7rSjAQW4cGYbn2jWrMnMi7bUw1EQ
Q%3D%3D"}],"group":"cf-nel","max_age":604800}]...}
RawContentLength : 0
3. Caddy version:
[cmabon@web-host jekyll-blog]$ caddy version
v2.7.4 h1:J8nisjdOxnYHXlorUKXY75Gr6iBfudfoGhrJ8t7/flI=
4. How I installed and ran Caddy:
Installed using DNF package manager according to the instructions for fedora
a. System environment:
Fedora server 38 - Kernel 6.5.5-200.fc38.x86_64
d. My complete Caddy config:
Contents of /etc/caddy/Caddyfile
{
debug
}
camrymabon.io {
# Set this path to your site's directory.
root * /var/www/jekyll-blog/
file_server
encode gzip
tls /etc/ssl/certs/certificate.pem /etc/ssl/private/key.pem
log {
output file /var/log/caddy/caddy.log
}
}