Problems with Caddy Home Directory when migrating to v2

1. Caddy version (caddy version):

v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=

2. How I run Caddy:

a. System environment:

Debian Linux 10 and caddy deb package from the official repository (Install — Caddy Documentation), systemd v.241-7~deb10u4

b. Command:

/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile

(via systemd service file)

c. Service/unit/compose file:

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

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

[Install]
WantedBy=multi-user.target

d. My complete Caddyfile or JSON config:

www.bobc.uni-bonn.de {
	root * /var/www/wikindx
	log
	encode gzip
	php_fastcgi /run/php/php7.3-fpm.sock
}

www.bobc.uni-bonn.de/adminer {
	root * /usr/share/adminer/adminer
	log
	encode gzip
	php_fastcgi /run/php/php7.3-fpm.sock
}

3. The problem I’m having:

I get a message that Caddy couldn’t obtain a certificate because of denied permissions in /var/www
Part of the problem is, that previously, with v.1, Caddy had the home directory /var/lib/caddy, which is where the certificate lives (in /var/lib/caddy/.local). Now, with v.2, the home directory is /var/www. I’ve no idea how the home dir is configured or where I could reconfigure it.

4. Error messages and/or full log output:

Jul  5 15:59:47 production caddy[391]: 2020/07/05 15:59:47 http: TLS handshake error from 77.88.9.130:50130: no certificate available for 'www.myhost.mydomain.de'
Jul  5 15:59:48 production caddy[391]: 2020/07/05 15:59:48 http: TLS handshake error from 77.88.9.130:50230: no certificate available for 'www.bobc.uni-bonn.de'
Jul  5 15:59:48 production caddy[391]: 2020/07/05 15:59:48 http: TLS handshake error from 77.88.9.130:50330: tls: client offered only unsupported versions: [302 301]
Jul  5 15:59:48 production caddy[391]: 2020/07/05 15:59:48 http: TLS handshake error from 77.88.9.130:50448: tls: client offered only unsupported versions: [301]
Jul  5 15:59:48 production caddy[391]: 2020/07/05 15:59:48 http: TLS handshake error from 77.88.9.130:50538: EOF
Jul  5 16:01:47 production caddy[391]: 2020/07/05 16:01:47 http: TLS handshake error from 192.241.223.66:46214: no certificate available for '131.220.93.76'
Jul  5 16:02:05 production caddy[391]: 2020/07/05 16:02:05 http: TLS handshake error from 79.22.62.204:52206: no certificate available for 'www.bobc.uni-bonn.de'
Jul  5 16:02:05 production caddy[391]: 2020/07/05 16:02:05 http: TLS handshake error from 79.22.62.204:52207: no certificate available for 'www.bobc.uni-bonn.de'
Jul  5 16:02:06 production caddy[391]: 2020/07/05 16:02:06 http: TLS handshake error from 79.22.62.204:52208: tls: client offered only unsupported versions: [301]
Jul  5 16:02:06 production caddy[391]: 2020/07/05 16:02:06 http: TLS handshake error from 79.22.62.204:52209: no certificate available for 'www.bobc.uni-bonn.de'
Jul  5 16:02:06 production caddy[391]: 2020/07/05 16:02:06 http: TLS handshake error from 79.22.62.204:52210: no certificate available for 'www.bobc.uni-bonn.de'
Jul  5 16:02:06 production caddy[391]: 2020/07/05 16:02:06 http: TLS handshake error from 79.22.62.204:52211: tls: client offered only unsupported versions: [301]
Jul  5 16:02:45 production caddy[391]: {"level":"info","ts":1593957765.7895424,"msg":"shutting down apps then terminating","signal":"SIGTERM"}
Jul  5 16:02:45 production caddy[391]: 2020/07/05 16:02:45 [INFO][cache:0xc0005d84e0] Stopped certificate maintenance routine
Jul  5 16:02:45 production caddy[391]: {"level":"info","ts":1593957765.8076937,"logger":"admin","msg":"stopped previous server"}
Jul  5 16:02:45 production caddy[391]: {"level":"info","ts":1593957765.8077152,"msg":"shutdown done","signal":"SIGTERM"}
Jul  5 16:02:45 production systemd[1]: caddy.service: Succeeded.
Jul  5 16:07:27 production caddy[1488]: caddy.HomeDir=/var/www
Jul  5 16:07:27 production caddy[1488]: caddy.AppDataDir=/var/www/.local/share/caddy
Jul  5 16:07:27 production caddy[1488]: caddy.AppConfigDir=/var/www/.config/caddy
Jul  5 16:07:27 production caddy[1488]: caddy.ConfigAutosavePath=/var/www/.config/caddy/autosave.json
Jul  5 16:07:27 production caddy[1488]: runtime.GOOS=linux
Jul  5 16:07:27 production caddy[1488]: runtime.GOARCH=amd64
Jul  5 16:07:27 production caddy[1488]: runtime.Compiler=gc
Jul  5 16:07:27 production caddy[1488]: runtime.NumCPU=2
Jul  5 16:07:27 production caddy[1488]: runtime.GOMAXPROCS=2
Jul  5 16:07:27 production caddy[1488]: runtime.Version=go1.14.4
Jul  5 16:07:27 production caddy[1488]: os.Getwd=/
Jul  5 16:07:27 production caddy[1488]: LANG=C.UTF-8
Jul  5 16:07:27 production caddy[1488]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Jul  5 16:07:27 production caddy[1488]: HOME=/var/www
Jul  5 16:07:27 production caddy[1488]: LOGNAME=www-data
Jul  5 16:07:27 production caddy[1488]: USER=www-data
Jul  5 16:07:27 production caddy[1488]: INVOCATION_ID=639db1958cb6449ca7f2012c2f398448
Jul  5 16:07:27 production caddy[1488]: JOURNAL_STREAM=9:25442
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.0630193,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.069019,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["127.0.0.1:2019","localhost:2019","[::1]:2019"]}
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.0693753,"logger":"http","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.0694149,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Jul  5 16:07:27 production caddy[1488]: 2020/07/05 16:07:27 [INFO][cache:0xc000100f00] Started certificate maintenance routine
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.0719237,"logger":"tls","msg":"cleaned up storage units"}
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.0721526,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["www.bobc.uni-bonn.de"]}
Jul  5 16:07:27 production caddy[1488]: {"level":"error","ts":1593958047.072284,"msg":"unable to create folder for config autosave","dir":"/var/www/.config/caddy","error":"mkdir /var/www/.config: permission denied"}
Jul  5 16:07:27 production caddy[1488]: {"level":"info","ts":1593958047.0723057,"msg":"serving initial configuration"}
Jul  5 16:07:27 production caddy[1488]: 2020/07/05 16:07:27 [ERROR] www.bobc.uni-bonn.de: obtaining certificate: failed storage check: mkdir /var/www/.local: permission denied - storage is probably misconfigured

5. What I already tried:

Changed the packaged service files: User=caddy => www-data
Group=caddy => www-data

6. Links to relevant resources:

OK, I’ve just discovered Where are certs stored under the default systemd setup? · Issue #3468 · caddyserver/caddy · GitHub, seems the certificates for v.1 were in /etc/ssl/caddy/. But I don’t know how the /var/lib/caddy directory came to exist, and why Caddy now wants to use /var/www/ as its home dir. Changing the owner of /var/lib/caddy and all its contents to www-data and restarting got me nowhere.

I guess I should live with Caddy running as user caddy (which is not the Debian standard for web servers) and change the permissions of /var/www instead … I’ll go and test this.

============================

Been there, done that. One step further ahead, but not yet there: Running with user caddy helped, Caddy can use /var/lib/caddy as home dir again and is using the certificate. But I don’t get my home page in the browser, but only a completely blank page …

Maybe someone can read something useful from the logs (I can’t):

Jul  5 17:16:23 production systemd[1]: caddy.service: Succeeded.
Jul  5 17:16:23 production caddy[1971]: caddy.HomeDir=/var/lib/caddy
Jul  5 17:16:23 production caddy[1971]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Jul  5 17:16:23 production caddy[1971]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Jul  5 17:16:23 production caddy[1971]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Jul  5 17:16:23 production caddy[1971]: runtime.GOOS=linux
Jul  5 17:16:23 production caddy[1971]: runtime.GOARCH=amd64
Jul  5 17:16:23 production caddy[1971]: runtime.Compiler=gc
Jul  5 17:16:23 production caddy[1971]: runtime.NumCPU=2
Jul  5 17:16:23 production caddy[1971]: runtime.GOMAXPROCS=2
Jul  5 17:16:23 production caddy[1971]: runtime.Version=go1.14.4
Jul  5 17:16:23 production caddy[1971]: os.Getwd=/
Jul  5 17:16:23 production caddy[1971]: LANG=C.UTF-8
Jul  5 17:16:23 production caddy[1971]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Jul  5 17:16:23 production caddy[1971]: HOME=/var/lib/caddy
Jul  5 17:16:23 production caddy[1971]: LOGNAME=caddy
Jul  5 17:16:23 production caddy[1971]: USER=caddy
Jul  5 17:16:23 production caddy[1971]: INVOCATION_ID=6d158c3fd3d74a1c9926b7836060cb62
Jul  5 17:16:23 production caddy[1971]: JOURNAL_STREAM=9:28953
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.4544854,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.477268,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["127.0.0.1:2019","localhost:2019","[::1]:2019"]}
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.4776592,"logger":"http","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.4776986,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Jul  5 17:16:23 production caddy[1971]: 2020/07/05 17:16:23 [INFO][cache:0xc000100540] Started certificate maintenance routine
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.4800642,"logger":"tls","msg":"cleaned up storage units"}
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.4802983,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["www.bobc.uni-bonn.de"]}
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.513183,"msg":"autosaved config","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Jul  5 17:16:23 production caddy[1971]: {"level":"info","ts":1593962183.5132167,"msg":"serving initial configuration"}
Jul  5 17:16:39 production caddy[1971]: {"level":"info","ts":1593962199.81341,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/index.php?action=list_LISTSOMERESOURCES_CORE&method=keywordProcess&id=1510&catId=1&type=lastMulti","proto":"HTTP/1.1","remote_addr":"77.88.9.131:39016","host":"www.bobc.uni-bonn.de","headers":{"Accept-Encoding":["gzip,deflate"],"Accept":["*/*"],"Connection":["Keep-Alive"],"User-Agent":["Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"],"From":["support@search.yandex.ru"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"77.88.9.131 - - [05/Jul/2020:17:16:39 +0200] \"GET /index.php?action=list_LISTSOMERESOURCES_CORE&method=keywordProcess&id=1510&catId=1&type=lastMulti HTTP/1.1\" 0 0","duration":0.000032674,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:16:44 production caddy[1971]: {"level":"info","ts":1593962204.8834617,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Dnt":["1"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Dest":["image"],"Accept-Encoding":["gzip, deflate, br"],"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"],"Origin":["chrome-extension://mpognobbkildjkofajifpdfhcoklimli"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Site":["none"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:16:44 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000033269,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:16:47 production caddy[1971]: {"level":"info","ts":1593962207.5716755,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Sec-Fetch-Site":["cross-site"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"],"Cache-Control":["max-age=0"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"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"],"Dnt":["1"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:16:47 +0200] \"GET / HTTP/2.0\" 0 0","duration":0.000076343,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:16:47 production caddy[1971]: {"level":"info","ts":1593962207.707989,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Site":["none"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Dest":["image"],"Accept-Encoding":["gzip, deflate, br"],"Origin":["chrome-extension://mpognobbkildjkofajifpdfhcoklimli"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:16:47 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000023206,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:16:47 production caddy[1971]: {"level":"info","ts":1593962207.712034,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Sec-Fetch-Dest":["image"],"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Cache-Control":["no-cache"],"Dnt":["1"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://www.bobc.uni-bonn.de/"],"Accept-Encoding":["gzip, deflate, br"],"Pragma":["no-cache"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:16:47 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000020667,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:16:47 production caddy[1971]: {"level":"info","ts":1593962207.7742472,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Accept-Encoding":["gzip, deflate, br"],"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"],"Origin":["chrome-extension://mpognobbkildjkofajifpdfhcoklimli"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Dest":["image"],"Dnt":["1"],"Sec-Fetch-Site":["none"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:16:47 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000022044,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:16:52 production caddy[1971]: {"level":"info","ts":1593962212.7483509,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Dest":["image"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Site":["none"],"Origin":["chrome-extension://mpognobbkildjkofajifpdfhcoklimli"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:16:52 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000035183,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.6961613,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/index.php","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59238","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko)"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /index.php HTTP/2.0\" 0 0","duration":0.000033069,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.811581,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon-precomposed.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /apple-touch-icon-precomposed.png HTTP/2.0\" 0 0","duration":0.000024414,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.8583713,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /apple-touch-icon.png HTTP/2.0\" 0 0","duration":0.000031957,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.8849359,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000022321,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.910623,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon-precomposed.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /apple-touch-icon-precomposed.png HTTP/2.0\" 0 0","duration":0.000023966,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.9554741,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /apple-touch-icon.png HTTP/2.0\" 0 0","duration":0.000027064,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:00 production caddy[1971]: {"level":"info","ts":1593962220.9859576,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:00 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000021007,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.0162249,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/index.php","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59238","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Mobile/15E148 Safari/604.1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /index.php HTTP/2.0\" 0 0","duration":0.000020942,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.0451522,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon-precomposed.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /apple-touch-icon-precomposed.png HTTP/2.0\" 0 0","duration":0.000021689,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.072854,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /apple-touch-icon.png HTTP/2.0\" 0 0","duration":0.00002086,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.0965755,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000022279,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.1500337,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon-precomposed.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /apple-touch-icon-precomposed.png HTTP/2.0\" 0 0","duration":0.000021264,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.1769783,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /apple-touch-icon.png HTTP/2.0\" 0 0","duration":0.000020447,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:01 production caddy[1971]: {"level":"info","ts":1593962221.2078073,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:01 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000020657,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:08 production caddy[1971]: {"level":"info","ts":1593962228.6482642,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59272","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:08 +0200] \"GET / HTTP/2.0\" 0 0","duration":0.000032341,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:08 production caddy[1971]: {"level":"info","ts":1593962228.692627,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon-precomposed.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:08 +0200] \"GET /apple-touch-icon-precomposed.png HTTP/2.0\" 0 0","duration":0.000021662,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:08 production caddy[1971]: {"level":"info","ts":1593962228.750223,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/apple-touch-icon.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59240","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Safari/15609.2.9.1.2 CFNetwork/1126 Darwin/19.5.0 (x86_64)"],"Accept":["*/*"],"Accept-Language":["de-de"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:08 +0200] \"GET /apple-touch-icon.png HTTP/2.0\" 0 0","duration":0.000023147,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 17:17:17 production caddy[1971]: {"level":"info","ts":1593962237.4127197,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/favicon.ico","proto":"HTTP/2.0","remote_addr":"131.220.247.130:59213","host":"www.bobc.uni-bonn.de","headers":{"Cookie":["PHPSESSID=tjacpvvnagf5dvgqahfpderh1u; rl_anonymous_id=%228e3a0f5c-d1d2-4137-b346-a23bc6c852e2%22; rl_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; rl_trait=%7B%7D; ajs_user_id=%22jqogkp4mub8htfhjsuup7befcc%22; ajs_anonymous_id=%2200000000000000000000000000%22"],"Dnt":["1"],"Sec-Fetch-Site":["none"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Fetch-Dest":["image"],"Origin":["chrome-extension://mpognobbkildjkofajifpdfhcoklimli"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Mode":["cors"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:17:17:17 +0200] \"GET /favicon.ico HTTP/2.0\" 0 0","duration":0.000034891,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}

I’ll go back to v.1 for now :frowning:

When using a unix socket in Caddy, you must prefix the path with unix/.

As you’ve found, the caddy user that gets created with the apt repo gets its home set to /var/lib/caddy. Since v2.1, the caddy user should also be made part of the www-data group so it should have permissions to anything other web servers typically have.

Also in Caddy v2, you must explicitly enable a file_server unlike Caddy v1 which did that implicitly.

Finally, path matching in v2 is exact-match, so your adminer site will only match requests for exactly /adminer but not /adminer/foo. You need to append a * for Caddy to match anything in else.

This is all described in the upgrade guide:

You could probably change your Caddyfile to this:

www.bobc.uni-bonn.de {
	root * /var/www/wikindx
	root /adminer* /usr/share/adminer/adminer

	log
	encode gzip

	php_fastcgi unix//run/php/php7.3-fpm.sock
	file_server
}
2 Likes

Aargh, didn’t read the docs up to the end :frowning: . Thank you so much for the hints with the user and the php_fastcgi directive! Both tipps helped.

But alas! I’m not yet there. The page is loaded in the browser, but the CSS doesn’t work. Any hints for this problem?

I don’t know. Need more detail. Saying “doesn’t work” is essentially meaningless. It could be literally anything.

Sorry, of course. After a fresh start the browser says the site is “not sure”. The browser console says:

Did not parse stylesheet at 'https://www.bobc.uni-bonn.de/components/templates/override.css?ver=6.3.2-b2' because non CSS MIME types are not allowed in strict mode.

Maybe the logs can be of help? After the fresh start, I found this:

Jul  5 19:03:28 production caddy[379]: caddy.HomeDir=/var/lib/caddy
Jul  5 19:03:28 production caddy[379]: caddy.AppDataDir=/var/lib/caddy/.local/share/caddy
Jul  5 19:03:28 production caddy[379]: caddy.AppConfigDir=/var/lib/caddy/.config/caddy
Jul  5 19:03:28 production caddy[379]: caddy.ConfigAutosavePath=/var/lib/caddy/.config/caddy/autosave.json
Jul  5 19:03:28 production caddy[379]: runtime.GOOS=linux
Jul  5 19:03:28 production caddy[379]: runtime.GOARCH=amd64
Jul  5 19:03:28 production caddy[379]: runtime.Compiler=gc
Jul  5 19:03:28 production caddy[379]: runtime.NumCPU=2
Jul  5 19:03:28 production caddy[379]: runtime.GOMAXPROCS=2
Jul  5 19:03:28 production caddy[379]: runtime.Version=go1.14.4
Jul  5 19:03:28 production caddy[379]: os.Getwd=/
Jul  5 19:03:28 production caddy[379]: LANG=C.UTF-8
Jul  5 19:03:28 production caddy[379]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Jul  5 19:03:28 production caddy[379]: HOME=/var/lib/caddy
Jul  5 19:03:28 production caddy[379]: LOGNAME=caddy
Jul  5 19:03:28 production caddy[379]: USER=caddy
Jul  5 19:03:28 production caddy[379]: INVOCATION_ID=12f9e51e79af437c9a9d2e26668d1c31
Jul  5 19:03:28 production caddy[379]: JOURNAL_STREAM=9:13833
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.7227876,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.7600288,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.8102512,"logger":"http","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.8103068,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
Jul  5 19:03:28 production caddy[379]: 2020/07/05 19:03:28 [INFO][cache:0xc000558ae0] Started certificate maintenance routine
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.872296,"logger":"tls","msg":"cleaned up storage units"}
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.8725512,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["www.bobc.uni-bonn.de"]}
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.9194946,"msg":"autosaved config","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Jul  5 19:03:28 production caddy[379]: {"level":"info","ts":1593968608.9195304,"msg":"serving initial configuration"}
Jul  5 18:55:11 production caddy[379]: {"level":"info","ts":1593968111.7598584,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/index.php","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"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"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Referer":["https://www.bobc.uni-bonn.de/index.php?action=statistics_STATS_CORE&method=keywords"],"Upgrade-Insecure-Requests":["1"],"Dnt":["1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Sec-Fetch-Site":["same-origin"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"Cache-Control":["max-age=0"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:11 +0200] \"GET /index.php HTTP/2.0\" 200 7153","duration":1.700673081,"size":7153,"status":200,"resp_headers":{"Set-Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; path=/"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Cache-Control":["no-store, no-cache, must-revalidate"],"Pragma":["no-cache"],"Content-Type":["text/html; charset=UTF-8"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.3532715,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/piaf/template.css?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["style"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Accept":["text/css,*/*;q=0.1"],"Sec-Fetch-Site":["same-origin"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/piaf/template.css?ver=6.3.2-b2 HTTP/2.0\" 0 0","duration":0.000169786,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.3608024,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/core/javascript/coreJavascript.js?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Sec-Fetch-Site":["same-origin"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Accept":["*/*"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["script"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"Dnt":["1"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /core/javascript/coreJavascript.js?ver=6.3.2-b2 HTTP/2.0\" 0 0","duration":0.000839731,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.3617191,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/core/javascript/ajax.js?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Dnt":["1"],"Accept":["*/*"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Dest":["script"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /core/javascript/ajax.js?ver=6.3.2-b2 HTTP/2.0\" 0 0","duration":0.000124711,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.362945,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/vendor/jsonjs/json2.js?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"Dnt":["1"],"Accept":["*/*"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Sec-Fetch-Dest":["script"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/vendor/jsonjs/json2.js?ver=6.3.2-b2 HTTP/2.0\" 0 0","duration":0.001022774,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.3702695,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/vendor/progressbarjs/progressbar.min.js?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Accept":["*/*"],"Sec-Fetch-Dest":["script"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"],"Sec-Fetch-Site":["same-origin"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/vendor/progressbarjs/progressbar.min.js?ver=6.3.2-b2 HTTP/2.0\" 0 0","duration":0.009252257,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4006963,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/plugins/chooselanguage/chooseLanguage.js?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["script"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Sec-Fetch-Site":["same-origin"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/plugins/chooselanguage/chooseLanguage.js?ver=6.3.2-b2 HTTP/2.0\" 0 0","duration":0.000173376,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4143162,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/override.css?ver=6.3.2-b2","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Dnt":["1"],"Accept":["text/css,*/*;q=0.1"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Dest":["style"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/override.css?ver=6.3.2-b2 HTTP/2.0\" 200 7146","duration":0.05451371,"size":7146,"status":200,"resp_headers":{"Pragma":["no-cache"],"Content-Type":["text/html; charset=UTF-8"],"Set-Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; path=/"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Expires":["Thu, 19 Nov 1981 08:52:00 GMT"],"Cache-Control":["no-store, no-cache, must-revalidate"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4290032,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/piaf/images/wikindx-logo.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Dest":["image"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/piaf/images/wikindx-logo.png HTTP/2.0\" 0 0","duration":0.000801869,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4581428,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/default/icons/help.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["image"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Dnt":["1"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/default/icons/help.png HTTP/2.0\" 0 0","duration":0.000123758,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4581716,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/default/icons/edit.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Sec-Fetch-Mode":["no-cors"],"Accept-Encoding":["gzip, deflate, br"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Dnt":["1"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Dest":["image"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/default/icons/edit.png HTTP/2.0\" 0 0","duration":0.000122883,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4584274,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/default/icons/delete.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Dnt":["1"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Dest":["image"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/default/icons/delete.png HTTP/2.0\" 0 0","duration":0.000113561,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4585145,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/piaf/images/rss.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["image"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/piaf/images/rss.png HTTP/2.0\" 0 0","duration":0.000129345,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Jul  5 18:55:12 production caddy[379]: {"level":"info","ts":1593968112.4587643,"logger":"http.log.access","msg":"handled request","request":{"method":"GET","uri":"/components/templates/default/icons/view.png","proto":"HTTP/2.0","remote_addr":"131.220.247.130:61315","host":"www.bobc.uni-bonn.de","headers":{"Accept":["image/webp,image/apng,image/*,*/*;q=0.8"],"Referer":["https://www.bobc.uni-bonn.de/index.php"],"Accept-Language":["de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"],"Cookie":["PHPSESSID=g63j627p3alf81chddiqukuf14; wikindx_wikindx5=YToxOntzOjg6InVzZXJuYW1lIjtzOjc6ImpvYWNoaW0iO30%3D; tinymcePasteText=1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36"],"Dnt":["1"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["image"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"ciphersuite":4867,"proto":"h2","proto_mutual":true,"server_name":"www.bobc.uni-bonn.de"}},"common_log":"131.220.247.130 - - [05/Jul/2020:18:55:12 +0200] \"GET /components/templates/default/icons/view.png HTTP/2.0\" 0 0","duration":0.000153427,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}

Sorry, I can’t get much out of this … :frowning:

Looking at https://www.bobc.uni-bonn.de/components/templates/override.css?ver=6.3.2-b2 it looks like it served an HTML document.

Your PHP app should return a 404 if the path doesn’t exist rather than serving an HTML document.

Caddy is looking on disk at /var/www/wikindx/components/templates/override.css but is not finding it, so it’s delegating the request to your PHP app. Where is the file actually located on disk?

Aah, I see. I’ve created a dummy file, but it didn’t help. And this has nothing to do with the browser thinking the site isn’t secure.

Both the CSS problem and the problem with https don’t happen with v.1. Maybe the older version is a little bit more relaxed. It’s a pity, but back to v.1 now!

This topic was automatically closed after 30 days. New replies are no longer allowed.