Remote Access to Your Files via WebDAV
This guide has been reviewed and reformatted for Ruk-Com Cloud PaaS. Screens may vary slightly by platform version.
Click or tap a screenshot to view it at its original size.
Objective
This guide explains how to use Remote Access to Your Files via WebDAV on Ruk-Com Cloud PaaS, with ordered procedures and practical verification points.
Before you begin
- Sign in with an account permitted to manage the relevant environment.
- Confirm the target environment, region and resources before saving changes.
- Create a backup or rollback plan before changing a production system.
While setting up a website, you may need to use complex methods for viewing and updating information on the website.Web-based Distributed Authoring and Versioning (WebDAV)It is a set of HTTP extensions that allow clients to perform remote web authoring operations. Some of these extensions completely override locking protection, name-space management, and properties (metadata). Others include: Version management Advanced collection and Access Control with HTTP Digest Authentication XML is used to encode parameters and responses.
WebDAVIt is HTTP based and has a widely used infrastructure. Any application built on WebDAV can use strong encryption for authentication, proxy, caching, and SSL encryption as you require. Another advantage is that WebDAV uses XML, which allows the protocol itself to be extended without having to be extracted.
You can use WebDAV to create, change, copy, and move files on your server. You can create and manage file directories directly in the cloud by accessing them over HTTP/HTTPS. Using WebDAV, you can access your application files for free, instantly, and securely anywhere you have a network connection.
So let's take a look at the methods for Java cloud applications.
Creating the Environment
1. Log in to Ruk-Com Cloud.
2. Within the dashboard, click the button.New Environment
3. On the pageEnvironment TopologySelect your application server (such as Tomcat 7 or 6), then enter your environment name, e.g.webdavtest
Wait a moment and your environment will be created.
Upload your Java package
1. Upload the Java WAR package toDeployment Manager
2. Once the package has been uploaded, click the deploy button to the environment you created earlier.
Click the Open in Browser button to verify that everything is OK.
Tomcat configuration
Tomcat provides WebDAV engine details using WebDAV Servlet, which is included in Tomcat distributions. All standards You can follow the next steps to configure and test your WebDAV connection:
1. Click the buttonConfigat the Tomcat application server
2. Tomcat comes with a WebDAV Level 2 servlet. You can enable Tomcat WebDAV connections by adding the fileweb.xml(server directory)
<servlet>
<servlet-name>webdav</servlet-name>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<!-- The following for read-write access -->
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>/webdav/*</url-pattern>
</servlet-mapping>
3. Please ensure that only authorized users can access WebDAV in your context. Go totomcat-users.xmlCreate a new user and assign a new role. For example:
<tomcat-users>
<user name="test" password="tomcat" roles="role1" />
</tomcat-users>
4. Define the role you just created in the section.auth-constraintof filesweb.xml:
<auth-constraint>
<role-name>role1</role-name>
</auth-constraint>
5. Save changes and restart Tomcat.
Server connection
1. Create a new connection using the desktop client for WebDav (for example, BitKinex).
2. Enter your server URL.(http://{your_env_name}.{hoster_domain}/{context}/webdav)Specify login Your Tomcat username and password.
3. You will see the server connection is successful.
You will see your files where you can edit, update, add new files, etc. Have fun!