Accessing the VFS via WebDAV
The OpenCms WebDAV servlet is available below the
/webdav path of your OpenCms installation.
WebDAV is enabled by default, there are no special configurations needed.
In order to disable the WebDAV servlet, comment the servlet mapping in the
web.xml file of your Tomcat installation:
<!--servlet-mapping> <servlet-name>DavServlet</servlet-name> <url-pattern>/webdav/*</url-pattern> </servlet-mapping-->
Setting up WebDAV on Ubuntu
Step 2: Configure /etc/davfs2/davfs2.conf
delay_upload configuration parameter to a value of
1 or lesser, which means,
davfs2 will wait at most 1 second until changes in your local file system are propagated to the OpenCms VFS.
Step 3: Set the mount
You will be prompted to enter your OpenCms username and OpenCms password.
Replace http://localhost/webdav with the URL of your OpenCms installation.
/mnt/opencms-vfs is a freely choosen directory for which your Ubuntu user should have read and write permissions.
With the options
-o rw,user,uid=$USER you make sure that the current Ubuntu user can read and write to the mounted WebDAV directory.