Caddy 1.0.4 | Nextcloud(nginx) | /nextcloud/ subfolder | leads to 502 Bad Gateway

I think you issue in particular is this:

fastcgi / 127.0.0.1:9000 php

I think the 502s are happening because Caddy can’t connect to PHP-FPM on port 9000.

Do you know if you’re running PHP-FPM on your server?

2 Likes