Skip to content

Commit a0c5fba

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

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
@@ -256,24 +256,28 @@ URLs:
256256

257257
| ``https://example.com/.well-known/carddav``
258258
| ``https://example.com/.well-known/caldav``
259-
|
260259
261260
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
263262
``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``
265265

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
267267
this work for you when you're running Apache. You need to make sure that your
268268
Web server is using this file. Additionally, you need the mod_rewrite Apache
269269
module installed and ``AllowOverride All`` set in your :file:`apache2.conf`
270270
or vHost-file to process these redirects. When running Nginx please refer to
271271
:doc:`../installation/nginx`.
272272

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

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::
277281

278282
<IfModule mod_rewrite.c>
279283
RewriteEngine on

0 commit comments

Comments
 (0)