1. Caddy version (caddy version
):
v2.0.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8
2. How I run Caddy:
I have no idea what you want here…
a. System environment:
Ubuntu 18.04, php 7.4, systemd
b. Command:
systemctl start caddy
d. My complete Caddyfile or JSON config:
bygden.nu {
root * /var/www/bygden
php_fastcgi unix//run/php/php-fpm.sock
file_server
log {
output file /var/log/caddy/access.log
format console
}
}
3. The problem I’m having:
No access using a browser, curl from localhost seems to work.
4. Error messages and/or full log output:
1.5922239638151884e+09 info http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50252", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:14:26:03 +0200] \"GET / HTTP/2.0\" 200 928", "duration": 0.004043242, "size": 928, "status": 200, "resp_headers": {"Content-Type": ["text/html; charset=utf-8"], "Last-Modified": ["Wed, 14 May 2008 16:40:20 GMT"], "Accept-Ranges": ["bytes"], "Content-Length": ["928"], "Server": ["Caddy"], "Etag": ["\"k0vab8ps\""]}}
1.5922267630633144e+09 info http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50258", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:15:12:43 +0200] \"GET / HTTP/2.0\" 200 928", "duration": 0.002984453, "size": 928, "status": 200, "resp_headers": {"Etag": ["\"k0vab8ps\""], "Content-Type": ["text/html; charset=utf-8"], "Last-Modified": ["Wed, 14 May 2008 16:40:20 GMT"], "Accept-Ranges": ["bytes"], "Content-Length": ["928"], "Server": ["Caddy"]}}
1.5922267683486433e+09 error http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/jonas", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50260", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:15:12:48 +0200] \"GET /jonas HTTP/2.0\" 404 0", "duration": 0.000116586, "size": 0, "status": 404, "resp_headers": {"Server": ["Caddy"]}}
1.5922268402185006e+09 error http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/jonas", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50262", "host": "bygden.nu", "headers": {"Accept": ["*/*"], "User-Agent": ["curl/7.58.0"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:15:14:00 +0200] \"GET /jonas HTTP/2.0\" 404 0", "duration": 0.000129649, "size": 0, "status": 404, "resp_headers": {"Server": ["Caddy"]}}
1.5922269810509067e+09 error http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/tmp", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50264", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:15:16:21 +0200] \"GET /tmp HTTP/2.0\" 404 0", "duration": 0.000132931, "size": 0, "status": 404, "resp_headers": {"Server": ["Caddy"]}}
1.5922279013603883e+09 info http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50272", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:15:31:41 +0200] \"GET / HTTP/2.0\" 200 928", "duration": 0.002761779, "size": 928, "status": 200, "resp_headers": {"Server": ["Caddy"], "Etag": ["\"k0vab8ps\""], "Content-Type": ["text/html; charset=utf-8"], "Last-Modified": ["Wed, 14 May 2008 16:40:20 GMT"], "Accept-Ranges": ["bytes"], "Content-Length": ["928"]}}
1.592234750711041e+09 error http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50312", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:17:25:50 +0200] \"GET / HTTP/2.0\" 502 0", "duration": 0.000250912, "size": 0, "status": 502, "resp_headers": {"Server": ["Caddy"]}}
1.5922347840341158e+09 error http.log.access.log0 handled request {"request": {"method": "GET", "uri": "/", "proto": "HTTP/2.0", "remote_addr": "97.107.138.194:50316", "host": "bygden.nu", "headers": {"User-Agent": ["curl/7.58.0"], "Accept": ["*/*"]}, "tls": {"resumed": false, "version": 772, "ciphersuite": 4865, "proto": "h2", "proto_mutual": true, "server_name": "bygden.nu"}}, "common_log": "97.107.138.194 - - [15/Jun/2020:17:26:24 +0200] \"GET / HTTP/2.0\" 502 0", "duration": 0.000363771, "size": 0, "status": 502, "resp_headers": {"Server": ["Caddy"]}}
5. What I already tried:
I’ve tried different browsers, looking at logfiles - usual linux troubleshooting, but the log doesn’t even look like my requests are getting there…
I tried reverting to my old Apache-config and it still works, so no network issue.
BTW - I’m NOT running both servers at the same time…
tcpdump shows incoming traffic both for http and https, but nothing in the logs…