Skip to content

Commit e6f69b9

Browse files
alexknopskjnldsv
authored andcommitted
Update general_troubleshooting.rst
updated steps considering Apache's defaults Signed-off-by: alexknop <knopalex@msu.edu>
1 parent b679c56 commit e6f69b9

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

admin_manual/issues/general_troubleshooting.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,24 +273,28 @@ URLs:
273273

274274
| ``https://example.com/.well-known/carddav``
275275
| ``https://example.com/.well-known/caldav``
276-
|
277276
278277
Those need to be redirecting your clients to the correct endpoints. If Nextcloud
279-
is running at the document root of your Web server the correct URL is
278+
is running at the ``DocumentRoot`` of your Web server the correct URL is
280279
``https://example.com/remote.php/dav`` for CardDAV and CalDAV and if running in a
281-
subfolder like ``nextcloud``, then ``https://example.com/nextcloud/remote.php/dav``.
280+
subfolder like ``nextcloud``, then the correct URL is ``https://example.com/nextcloud/remote.php/dav``.
281+
.. note:: By default, the Apache ``DocumentRoot`` is the directory ``/var/www/html``
282282

283-
For the first case the :file:`.htaccess` file shipped with Nextcloud should do
283+
For the first case, the :file:`.htaccess` file shipped with Nextcloud should do
284284
this work for you when you're running Apache. You need to make sure that your
285285
Web server is using this file. Additionally, you need the mod_rewrite Apache
286286
module installed and ``AllowOverride All`` set in your :file:`apache2.conf`
287287
or vHost-file to process these redirects. When running Nginx please refer to
288288
:doc:`../installation/nginx`.
289289

290+
For the second case, you need to add the following to :file:`/etc/apache2/apache2.conf`::
290291

291-
If your Nextcloud instance is installed in a subfolder called ``nextcloud`` and
292-
you're running Apache, create or edit the :file:`.htaccess` file within the
293-
document root of your Web server and add the following lines::
292+
<Directory /var/www/html>
293+
AllowOverride FileInfo
294+
</Directory>
295+
296+
In this, we are using the Apache default ``DocumentRoot`` of ``/var/www/html``, but you should change it to whatever your ``DocumentRoot`` is if it differs.
297+
Next, create or edit the :file:`.htaccess` file within the ``DocumentRoot`` of your Web server and add the following lines::
294298

295299
<IfModule mod_rewrite.c>
296300
RewriteEngine on

0 commit comments

Comments
 (0)