File tree Expand file tree Collapse file tree
admin_manual/installation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,8 +191,18 @@ if your setup is available on ``https://example.org/nextcloud`` or::
191191 'overwrite.cli.url' => 'https://example.org/',
192192 'htaccess.RewriteBase' => '/',
193193
194- if it isn't installed in a subfolder. Finally run this occ-command to update
195- your .htaccess file::
194+ if it isn't installed in a subfolder.
195+
196+ .. note ::
197+
198+ ``htaccess.RewriteBase `` must match the path relative to Apache's DocumentRoot
199+ where Nextcloud is served on the backend, not the public URL prefix. In a direct
200+ Apache setup these are identical. Behind a reverse proxy that strips the URL
201+ prefix — for example ``https://domain.com/nextcloud/ `` forwarded to
202+ ``http://localhost:8080/ `` — the correct value is ``/ `` even though the public
203+ URL contains ``/nextcloud ``.
204+
205+ Finally run this occ-command to update your ``.htaccess `` file::
196206
197207 sudo -E -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
198208
You can’t perform that action at this time.
0 commit comments