Correct way to change the URL path using AIO and nginx

You’re correct — in my earlier post (Testing large file synchronization with Nextcloud AIO and NGINX Proxy), the setup runs Nextcloud AIO behind NGINX Proxy Manager on the root path (/). It does not demonstrate how to run AIO under a subpath like /nextcloud.

From my own tests and confirmation in the official documentation, Nextcloud AIO cannot be deployed in a subdirectory. Even if you try setting OVERWRITEWEBROOT=/nextcloud, the AIO setup container performs domain validation on the root path (/) only. This causes the setup to fail when served under a subpath.

This is explicitly mentioned in the official documentation:

:link: GitHub README – “Can I run Nextcloud in a subdirectory on my domain?”
https://github.com/nextcloud/all-in-one?tab=readme-ov-file#can-i-run-nextcloud-in-a-subdirectory-on-my-domain

Answer from the official docs:
“This is not possible as the AIO interface needs to be reachable through the domain without any subpath. Using a subdomain like nextcloud.example.com works fine though.”

Additionally, here are two community discussions confirming this limitation:

So, to clarify:
:white_check_mark: My shared setup was focused on performance and large file sync behind a reverse proxy.
:cross_mark: It was not meant to demonstrate AIO running under a path like /nextcloud — which is not supported by AIO.

If you must run Nextcloud under a subpath, you should use the standard Nextcloud installation instead of AIO.
For simplicity and full compatibility, the recommended approach is to use a dedicated subdomain, like nextcloud.example.com.


Note: This post was written with the help of an AI assistant as a writing aid only. The opinions, solutions, and technical recommendations are fully based on my personal experience.
More about how and why I use AI to write forum posts:
:right_arrow: Is there limitations to installing Nextcloud via CT template on Proxmox - #4 by vawaver

1 Like