Nextcloud version (eg, 10.0.3):
Operating system and version (Freenas 9.10):
I recently installed Nextcloud via PBI, it works just fine as long as i try to access it locally. As soon as i try to reverse proxy it via NGINX (and insert the “overwrite webroot” line in the config file), it cannot be accessed locally nor remotely via mydomain.com/nextcloud. Do you have any idea?
Hmm, what are you trying to achieve with overwrite webroot?
Can it still be accessed via IP/host internally?
Do you have a DNS override internally that would allow systems to resolve mydomain.com/nextcloud without going out to the internet?
Basically i set up a reverse proxy in order to access all my jails remotely via HTTPS with the simple addition of /nameofthejail after my domain. Once the line is added nextcloud isn’t accessible anymore: depending on the browser you’re using, you’ll get different errors: Firefox is about too many redirects (for example).
P.S.
It doesen’t even work locally with localIP/nextcloud
Start with local access first. If you can too many redirects, you can use curl on your command line to see where you get redirected and then check your webserver config.