Skip to content

Commit b862387

Browse files
authored
Merge pull request #14946 from nextcloud/backport/14938/stable33
[stable33] docs: clarify htaccess.RewriteBase is a backend path, not public URL
2 parents 9990611 + c54f52e commit b862387

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

admin_manual/installation/source_installation.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,18 @@ if your setup is available on ``https://example.org/nextcloud`` or::
172172
'overwrite.cli.url' => 'https://example.org/',
173173
'htaccess.RewriteBase' => '/',
174174

175-
if it isn't installed in a subfolder. Finally run this occ-command to update
176-
your .htaccess file::
175+
if it isn't installed in a subfolder.
176+
177+
.. note::
178+
179+
``htaccess.RewriteBase`` must match the path relative to Apache's DocumentRoot
180+
where Nextcloud is served on the backend, not the public URL prefix. In a direct
181+
Apache setup these are identical. Behind a reverse proxy that strips the URL
182+
prefix — for example ``https://domain.com/nextcloud/`` forwarded to
183+
``http://localhost:8080/`` — the correct value is ``/`` even though the public
184+
URL contains ``/nextcloud``.
185+
186+
Finally run this occ-command to update your ``.htaccess`` file::
177187

178188
sudo -E -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
179189

0 commit comments

Comments
 (0)