Thank you for trying to help, but that is specifically my problem and what the question is about in the first place. The tutorial config doesn’t work properly, probably because I’m doing it wrong.
He’s not very specific
For this example, these files are placed in a directory named cgit-resource.
Where specifically is that folder supposed to be?
But that doesn’t matter too much - it works for me when I leave out the -resources part, as I said before.
Now the issue is I want to move it all to git.example.com/ and not have it on (git.)example.com/cgit like described in the tutorial.
Just in case you still want me to - here I’m using the documentation’s config (with match /cgit like detailed there):
x.x.x.x - - [08/May/2018:19:06:37 +0200] “GET / HTTP/2.0” 404 14
x.x.x.x - - [08/May/2018:19:06:37 +0200] “GET /favicon.ico HTTP/2.0” 200 1078
x.x.x.x - - [08/May/2018:19:06:46 +0200] “GET /cgit HTTP/2.0” 200 1491
x.x.x.x - - [08/May/2018:19:06:46 +0200] “GET /cgit-resources/favicon.ico HTTP/2.0” 404 14
x.x.x.x - - [08/May/2018:19:06:46 +0200] “GET /cgit-resources/cgit.css HTTP/2.0” 404 14
x.x.x.x - - [08/May/2018:19:06:46 +0200] “GET /cgit-resources/cgit.png HTTP/2.0” 404 14
x.x.x.x - - [08/May/2018:19:06:46 +0200] “GET /cgit-resources/favicon.ico HTTP/2.0” 404 14
moving it all to match / and using /cgit-resources/cgit.{png,.css} again:
x.x.x.x - - [08/May/2018:19:16:31 +0200] “GET / HTTP/2.0” 200 1491
x.x.x.x - - [08/May/2018:19:16:31 +0200] “GET /cgit-resources/cgit.css HTTP/2.0” 404 1087
x.x.x.x - - [08/May/2018:19:16:31 +0200] “GET /cgit-resources/cgit.png HTTP/2.0” 404 1087
How can I find out where the files are located?
Also:
# ls /usr/share/cgit
cgit.css cgit.png favicon.ico robots.txt
which is exactly where I pointed caddy’s root to.