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
@@ -256,24 +256,28 @@ URLs:
256
256
257
257
|``https://example.com/.well-known/carddav``
258
258
|``https://example.com/.well-known/caldav``
259
-
|
260
259
261
260
Those need to be redirecting your clients to the correct endpoints. If Nextcloud
262
-
is running at the document root of your Web server the correct URL is
261
+
is running at the ``DocumentRoot`` of your Web server the correct URL is
263
262
``https://example.com/remote.php/dav`` for CardDAV and CalDAV and if running in a
264
-
subfolder like ``nextcloud``, then ``https://example.com/nextcloud/remote.php/dav``.
263
+
subfolder like ``nextcloud``, then the correct URL is ``https://example.com/nextcloud/remote.php/dav``.
264
+
.. note:: By default, the Apache ``DocumentRoot`` is the directory ``/var/www/html``
265
265
266
-
For the first case the :file:`.htaccess` file shipped with Nextcloud should do
266
+
For the first case, the :file:`.htaccess` file shipped with Nextcloud should do
267
267
this work for you when you're running Apache. You need to make sure that your
268
268
Web server is using this file. Additionally, you need the mod_rewrite Apache
269
269
module installed and ``AllowOverride All`` set in your :file:`apache2.conf`
270
270
or vHost-file to process these redirects. When running Nginx please refer to
271
271
:doc:`../installation/nginx`.
272
272
273
+
For the second case, you need to add the following to :file:`/etc/apache2/apache2.conf`::
273
274
274
-
If your Nextcloud instance is installed in a subfolder called ``nextcloud`` and
275
-
you're running Apache, create or edit the :file:`.htaccess` file within the
276
-
document root of your Web server and add the following lines::
275
+
<Directory /var/www/html>
276
+
AllowOverride FileInfo
277
+
</Directory>
278
+
279
+
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.
280
+
Next, create or edit the :file:`.htaccess` file within the ``DocumentRoot`` of your Web server and add the following lines::
0 commit comments