You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin_manual/issues/general_troubleshooting.rst
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,24 +273,28 @@ URLs:
273
273
274
274
|``https://example.com/.well-known/carddav``
275
275
|``https://example.com/.well-known/caldav``
276
-
|
277
276
278
277
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
280
279
``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``
282
282
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
284
284
this work for you when you're running Apache. You need to make sure that your
285
285
Web server is using this file. Additionally, you need the mod_rewrite Apache
286
286
module installed and ``AllowOverride All`` set in your :file:`apache2.conf`
287
287
or vHost-file to process these redirects. When running Nginx please refer to
288
288
:doc:`../installation/nginx`.
289
289
290
+
For the second case, you need to add the following to :file:`/etc/apache2/apache2.conf`::
290
291
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::
0 commit comments