I want to run nextcloud with caddy.
But I get the following errors:
[INFO] 81.169.154.213 - No such site at :80 (Remote: 191.205.76.56, Referer: )
[INFO] Scanning for stale OCSP staples
[INFO] Done checking OCSP staples
http: TLS handshake error from 91.6.20.75:56051: tls: no certificates configured
The 404s are generated because Caddy has no site definition for levelthreemage.de - it only has a definition for levelthreemage.de/nextcloud, and;
I’d wager that the 500s are linked to the fact that you’re putting Nextcloud in a subfolder. I believe you can configure an overwrite of the web root, but you’d need to look at the Nextcloud documentation. You might not need to fiddle with the rewrites, but I’m not 100% sure.
My strong suggestion is to drop the path from the site label (i.e. levelthreemage.de/nextcloud → levelthreemage.de) and see if that solves the 500 series errors (I fully expect it to solve the 404s). If it does, you’ll know that the obstacle is figuring out how to get Nextcloud to play nicely under the subfolder.
I changed it from levelthreemage.de/nextcloud to levelthreemage.de on Caddyfile but that changed nothing.
So I changed it back and after delete the php7.0-fpm that the server only can use the 7.2 version I’m now getting a BadGateway. The Errorlog says [ERROR 502 /] dial tcp 127.0.0.1:9000: connect: connection refused.
I had more than one PHP version so I deleted everything except the version I needed (PHP7.2) than I reinstalled php7.2-fpm and changed in the www.conf file to listen=127.0.0.1:9000
Just write that if anyone else have the same issue. This may helps!