mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #2335 from RealRancor/fix_dav_urls
Fix *DAV URLs for OC9+
This commit is contained in:
commit
4f04aa09aa
@ -34,7 +34,7 @@ connect to ownCloud from your mobile device using WebDAV. `WebDAV Navigator`_ is
|
||||
a good (proprietary) app for `Android devices`_, `iPhones`_, and `BlackBerry
|
||||
devices`_. The URL to use on these is::
|
||||
|
||||
example.com/owncloud/remote.php/dav
|
||||
example.com/owncloud/remote.php/dav/files/USERNAME/
|
||||
|
||||
WebDAV Configuration
|
||||
--------------------
|
||||
@ -60,7 +60,7 @@ Nautilus File Manager
|
||||
Use the ``davs://`` protocol to connect the Nautilus file manager to your
|
||||
ownCloud share::
|
||||
|
||||
davs://example.com/owncloud/remote.php/dav
|
||||
davs://example.com/owncloud/remote.php/dav/files/USERNAME/
|
||||
|
||||
.. note:: If your server connection is not HTTPS-secured, use `dav://` instead
|
||||
of `davs://`.
|
||||
@ -74,7 +74,7 @@ Accessing Files with KDE and Dolphin File Manager
|
||||
To access your ownCloud files using the Dolphin file manager in KDE, use
|
||||
the ``webdav://`` protocol::
|
||||
|
||||
webdav://example.com/owncloud/remote.php/dav
|
||||
webdav://example.com/owncloud/remote.php/dav/files/USERNAME/
|
||||
|
||||
.. image:: ../images/webdav_dolphin.png
|
||||
:alt: screenshot of configuring Dolphin file manager to use WebDAV
|
||||
@ -94,7 +94,7 @@ You can create a permanent link to your ownCloud server:
|
||||
|
||||
* Server: The ownCloud domain name, for example **example.com** (without
|
||||
**http://** before or directories afterwards).
|
||||
* Folder -- Enter the path ``owncloud/remote.php/dav``.
|
||||
* Folder -- Enter the path ``owncloud/remote.php/dav/files/USERNAME/``.
|
||||
#. (Optional) Check the "Create icon checkbox" for a bookmark to appear in the
|
||||
Places column.
|
||||
#. (Optional) Provide any special settings or an SSL certificate in the "Port &
|
||||
@ -140,11 +140,11 @@ automatically every time you log in to your Linux computer.
|
||||
6. Add your ownCloud login credentials to the end of the ``secrets`` file,
|
||||
using your ownCloud server URL and your ownCloud username and password::
|
||||
|
||||
example.com/owncloud/remote.php/dav <username> <password>
|
||||
example.com/owncloud/remote.php/dav/files/USERNAME/ <username> <password>
|
||||
|
||||
7. Add the mount information to ``/etc/fstab``::
|
||||
|
||||
example.com/owncloud/remote.php/dav /home/<username>/owncloud
|
||||
example.com/owncloud/remote.php/dav/files/USERNAME/ /home/<username>/owncloud
|
||||
davfs user,rw,auto 0 0
|
||||
|
||||
8. Then test that it mounts and authenticates by running the following
|
||||
@ -210,7 +210,7 @@ To access files through the Mac OS X Finder:
|
||||
For example, the URL used to connect to the ownCloud server
|
||||
from the Mac OS X Finder is::
|
||||
|
||||
https://example.com/owncloud/remote.php/dav
|
||||
https://example.com/owncloud/remote.php/dav/files/USERNAME/
|
||||
|
||||
.. image:: ../images/osx_webdav2.png
|
||||
|
||||
@ -254,12 +254,12 @@ the drive:
|
||||
2. Enter the following line in the command prompt to map to the computer Z
|
||||
drive::
|
||||
|
||||
net use Z: https://<drive_path>/remote.php/dav /user:youruser
|
||||
net use Z: https://<drive_path>/remote.php/dav/files/USERNAME/ /user:youruser
|
||||
yourpassword
|
||||
|
||||
where <drive_path> is the URL to your ownCloud server.
|
||||
|
||||
For example: ``net use Z: https://example.com/owncloud/remote.php/dav
|
||||
For example: ``net use Z: https://example.com/owncloud/remote.php/dav/files/USERNAME/
|
||||
/user:youruser yourpassword``
|
||||
|
||||
The computer maps the files of your ownCloud account to the drive letter Z.
|
||||
@ -284,11 +284,11 @@ To map a drive using the Microsoft Windows Explorer:
|
||||
the drop-down menu.
|
||||
3. Choose a local network drive to which you want to map ownCloud.
|
||||
4. Specify the address to your ownCloud instance, followed by
|
||||
**/remote.php/dav**.
|
||||
**/remote.php/dav/files/USERNAME/**.
|
||||
|
||||
For example::
|
||||
|
||||
https://example.com/owncloud/remote.php/dav
|
||||
https://example.com/owncloud/remote.php/dav/files/USERNAME/
|
||||
|
||||
.. note:: For SSL protected servers, check **Reconnect at logon** to ensure
|
||||
that the mapping is persistent upon subsequent reboots. If you want to
|
||||
@ -330,7 +330,7 @@ different connection type if you plan to use SSL. For example:
|
||||
3. Use the 'More Options' drop-down menu to add the rest of your WebDAV URL into
|
||||
the 'Path' field. For example:
|
||||
|
||||
``remote.php/dav``
|
||||
``remote.php/dav/files/USERNAME/``
|
||||
|
||||
Now Cyberduck enables file access to the ownCloud server.
|
||||
|
||||
@ -449,29 +449,29 @@ To create a folder with the current date as name:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ curl -u user:pass -X MKCOL "https://example.com/owncloud/remote.php/dav/$(date '+%d-%b-%Y')"
|
||||
$ curl -u user:pass -X MKCOL "https://example.com/owncloud/remote.php/dav/files/USERNAME/$(date '+%d-%b-%Y')"
|
||||
|
||||
To upload a file ``error.log`` into that directory:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ curl -u user:pass -T error.log "https://example.com/owncloud/remote.php/dav/$(date '+%d-%b-%Y')/error.log"
|
||||
$ curl -u user:pass -T error.log "https://example.com/owncloud/remote.php/dav/files/USERNAME/$(date '+%d-%b-%Y')/error.log"
|
||||
|
||||
To move a file:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ curl -u user:pass -X MOVE --header 'Destination: https://example.com/owncloud/remote.php/dav/target.jpg' https://example.com/owncloud/remote.php/dav/source.jpg
|
||||
$ curl -u user:pass -X MOVE --header 'Destination: https://example.com/owncloud/remote.php/dav/files/USERNAME/target.jpg' https://example.com/owncloud/remote.php/dav/files/USERNAME/source.jpg
|
||||
|
||||
To get the properties of files in the root folder:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ curl -X PROPFIND -H "Depth: 1" -u user:pass https://example.com/owncloud/remote.php/dav/ | xml_pp
|
||||
$ curl -X PROPFIND -H "Depth: 1" -u user:pass https://example.com/owncloud/remote.php/dav/files/USERNAME/ | xml_pp
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<d:multistatus xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:s="http://sabredav.org/ns">
|
||||
<d:response>
|
||||
<d:href>/owncloud/remote.php/dav/</d:href>
|
||||
<d:href>/owncloud/remote.php/dav/files/USERNAME/</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<d:getlastmodified>Tue, 13 Oct 2015 17:07:45 GMT</d:getlastmodified>
|
||||
@ -486,7 +486,7 @@ To get the properties of files in the root folder:
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
<d:response>
|
||||
<d:href>/owncloud/remote.php/dav/welcome.txt</d:href>
|
||||
<d:href>/owncloud/remote.php/dav/files/USERNAME/welcome.txt</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<d:getlastmodified>Tue, 13 Oct 2015 17:07:35 GMT</d:getlastmodified>
|
||||
|
||||
@ -291,7 +291,7 @@ To synchronize with an Apple iOS device:
|
||||
|
||||
5. Select ``Add CardDAV account``.
|
||||
|
||||
6. For ``server``, enter https://example.com/remote.php/dav/principals/username
|
||||
6. For ``server``, enter https://example.com/remote.php/dav/principals/users/USERNAME/
|
||||
|
||||
7. Specify your username and password.
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ Calendar
|
||||
#. Select Add Account.
|
||||
#. Select Other as account type.
|
||||
#. Select Add CalDAV account.
|
||||
#. For server, type ``example.com/remote.php/dav/principals/username``
|
||||
#. For server, type ``example.com/remote.php/dav/principals/users/USERNAME/``
|
||||
#. Enter your user name and password.
|
||||
#. Select Next.
|
||||
#. If your server does not support SSL, a warning will be displayed.
|
||||
@ -34,7 +34,7 @@ Address book
|
||||
#. Select Add Account.
|
||||
#. Select Other as account type.
|
||||
#. Select Add CardDAV account.
|
||||
#. For server, type ``example.com/remote.php/dav/principals/username``
|
||||
#. For server, type ``example.com/remote.php/dav/principals/users/USERNAME/``
|
||||
#. Enter your user name and password.
|
||||
#. Select Next.
|
||||
#. If your server does not support SSL, a warning will be displayed.
|
||||
|
||||
@ -3,9 +3,9 @@ Synchronizing with OS X
|
||||
|
||||
To use ownCloud with iCal you will need to use the following URL::
|
||||
|
||||
https://example.com/remote.php/dav/principals/username/
|
||||
https://example.com/remote.php/dav/principals/users/USERNAME/
|
||||
|
||||
The setup is basically the same as with iOS using the path ``https://example.com/remote.php/dav/principals/username/``
|
||||
The setup is basically the same as with iOS using the path ``https://example.com/remote.php/dav/principals/users/USERNAME/``
|
||||
to sync with ownCloud. For OS X 10.7 Lion and 10.8 Mountain Lion everything works
|
||||
fine, but OS X 10.6 (Snow Leopard) and older needs some fiddling to work. A user
|
||||
contributed the following:
|
||||
@ -31,7 +31,7 @@ your favorite text editor.
|
||||
|
||||
8. Make it look like this. Please note that the :443 after **example.com** is important::
|
||||
|
||||
<key>servername</key <string>https://example.com:443/owncloud/remote.php/dav/principals/username</string> <key>username</key <string>username</string>
|
||||
<key>servername</key <string>https://example.com:443/owncloud/remote.php/dav/principals/users/USERNAME</string> <key>username</key <string>username</string>
|
||||
|
||||
9. Save the file and open addressbook again. It will not work yet.
|
||||
|
||||
|
||||
@ -9,9 +9,9 @@ BlackBerry OS up to 10.2.2102 does not accept a URL with protocol ``https://``
|
||||
in front of the server address. It will always tell you that it cannot login on
|
||||
your server. So instead of writing::
|
||||
|
||||
https://example.com/remote.php/dav/principals/username
|
||||
https://example.com/remote.php/dav/principals/users/USERNAME/
|
||||
|
||||
in the server address field, you have to write::
|
||||
|
||||
example.com/remote.php/dav/principals/username
|
||||
example.com/remote.php/dav/principals/users/USERNAME/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user