|
Note! This Manual is for the "Windows authentication" version, which is designed to work with existing Windows server or Active Directory accounts and Windows authentication. If you want to create accounts by yourself and store their credentials in your own HTTP Commander XML database, you need to download the "Forms authentication" version! This Manual is for the Windows authentication version only! |
Web file manager |
Web folder mapping allows users to map web folder to the file system on local computer (WebDav). Users may see on a local computer and work with the same folders that they see in HTTP Commander interface with the same rights. In fact the work with files takes place online in a remote folder on server, so Internet access is necessary. All the changes made by a user apply to the files on server at the very same moment.
Advantages of web folder:
<configuration>
...
<system.web>
...
<httpModules>
...
<add name="FileWebDavModule" type="HttpCommander.FileWebDAVServer.FileWebDavModule, FileWebDAVServer" />
...
</httpModules>
...
</system.web>
...
<system.webServer>
...
<modules runAllManagedModulesForAllRequests="true">
<remove name="FileWebDavModule" />
<remove name="WebDAVModule" />
...
<add name="FileWebDavModule" type="HttpCommander.FileWebDAVServer.FileWebDavModule, FileWebDAVServer" preCondition="integratedMode" />
...
</modules>
...
</system.webServer>
...
</configuration>
Turning off ASP.NET URL authorization on WebDav folder.
Make sure the following section is present in application's Web.config file.
<location path="hcwebdav">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
(Path attribute must match IdentifierWebDav parameter.)
A URL of a web folders looks like "http://www.yoursite.com/HTCOMNET/hcwebdav/" or "http://www.yoursite.com/HTCOMNET/hcwebdav/0/". "www.yoursite.com/HTCOMNET" should be replaced with real path. "hcwebdav" is an artificial path component serving to identify WebDav requests. This is not a real folder in the application root folder! Don't remove this component from URL! You may change this suffix with the IdentifierWebDav HTTP Commander setting (hidden by default). If for the AnonymousEditingOffice parameter indicated value of true, is mandatory presence of a suffix "0" — "0" path component classifies this WebDav URL as normal WebDav URL requiring authentication. If you need to designate a specific folder, then append the folder path after /hcwebdav/ or /hcwebdav/0/ suffix, for example, "http://www.yoursite.com/HTCOMNET/hcwebdav/foldername" or "http://www.yoursite.com/HTCOMNET/hcwebdav/0/foldername".
Anonymous WebDav URLs include "1" path component. For example,
"http://www.yoursite.com/HTCOMNET/hcwebdav/1/7361fc3a/".
These WebDav URLs resemble public links in that they do not require authentication.
The fragment following "1" is a link key authorizing access to the file/folder.
See parameter AnonymousEditingOffice.
For Windows XP. (This approach of mapping folders uses WebDAV Mini Redirector WebDAV client of Windows XP. In http requests it identifies itself as "User-Agent: Microsoft-WebDAV-MiniRedir/5.1.2600".) Open Windows Explorer, click Tools > Map Network Drive, type URL to the Folder field, click Finish.
ScreenshotFor Windows XP. Open Windows Explorer, click Tools > Map Network Drive. Map Network Drive dialog appears. Click "Sign up for online storage or connect to a network server" link. Add Network Place Wizard opens. Follow instructions for Add Network Place Wizard.
ScreenshotFor Windows XP. Open Windows Explorer, open My Network Places. Click Add a Network Place link in the Network Tasks group on the left sidebar. Add Network Place Wizard opens. Follow instructions for Add Network Place Wizard.
ScreenshotFor Windows XP with Add Network Place Wizard. (This approach of mapping folders uses Web Folders WebDAV client of Windows XP. In http requests it identifies itself as "User-Agent: Microsoft Data Access Internet Publishing Provider DAV".) Open Add Network Place Wizard. Click Next twice, specify URL in the Internet or network address field. Specify port number along the server name (80 for http, 443 for https). For example, the URL may look like: http://demo.element-it.com:80/examples/demowindows/hcwebdav/, http://demo.element-it.com:80/examples/demowindows/hcwebdav/0/, https://demo.element-it.com:443/examples/demowindows/hcwebdav/ or https://demo.element-it.com:443/examples/demowindows/hcwebdav/0/. Click Next. Authentication dialog appears. Enter valid credentials. Click Finish. New Windows Explorer window opens. Authentication dialog appears again (even if you checked "Remember my password" checkbox before). Enter credentials one more time. Windows Explorer window shows content of the web folder.
ScreenshotFor Windows XP with Internet Explorer 7 and above. Open Internet Explorer, Main menu > File > Open.... In the Open dialog specify URL of the WebDav folder and check "Open as Web Folder" checkbox. Specify port number along the server name (80 for http, 443 for https). For example, the URL may look like: http://demo.element-it.com:80/examples/demowindows/hcwebdav/, http://demo.element-it.com:80/examples/demowindows/hcwebdav/0/, https://demo.element-it.com:443/examples/demowindows/hcwebdav/ or https://demo.element-it.com:443/examples/demowindows/hcwebdav/0/. Click OK.
ScreenshotFor Windows Vista, 7, 8, 8.1, 10. Open Windows Explorer, select Computer on the left pane, click Map Network Drive on the tool bar. In the new dialog open the "Connect to a Web site that you can use to store your documents and pictures" link at the bottom, click "Next" button twice. Insert the link of the web folder in the "Internet or Network address" field, click "Next".
ScreenshotFor Windows XP, Server 2003, Vista. Note! You should install Microsoft Web folders update to be able to use mapping and Office edit features. In some cases WebDav don't works without this fix installed. Complete list of fixes.
WebDav over http and https protocols.
Windows Vista, 7, 8, 8.1, 10 WebDav client refuses to authenticate over http protocol when WebDav server uses basic authentication method. You have to use https protocol.
WebDAV Mini Redirector WebDAV client of Windows XP refuse to authenticate over http protocol when WebDAV server uses basic authentication method. Authentication dialog shows, but client does not send credentials to the server, requests are not sent at all.
WebDav server of HTTP Commander uses Basic authentication in the following cases:
Symptoms:
In Windows 7,
Windows Explorer asks for user credentials three times, then fails with an error message stating
it is unable to access the folder.
Screenshot
In Windows Vista, Windows Explorer does not ask for credentials, it displays an invalid folder error message a number of seconds after you clicked the Next button.
ScreenshotTo enable authentication over http protocol, see Error message when you try to connect to a Windows SharePoint document library... > Workaround > configuring registry.
For Windows XP. You need to assign 1 to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\UseBasicAuth registry value. Value type is DWORD. For changes to take effect, issue the following commands:
NET STOP MRXDAV
NET START WEBCLIENT
For Windows Vista, 7, 8, 8.1, 10. You need to assign 2 to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel registry value. Value type is DWORD. For changes to take effect, restart the WebClient service or reboot the machine.
https protocol and server certificate
To configure https protocol, the web server should have a valid SSL certificate. You may install self-signed certificate to the server as described in How can I use HTTP Commander with SSL?, deploy custom certification authority in your corporate network, or obtain a certificate from one of the widely known authorities. Note that a self-signed certificate is untrusted by definition, unless you've installed it to the "Trusted Root Certification Authorities" store on each client PC. Connecting to WebDav server over https with invalid certificate is tricky business. Windows Explorer at first refuses to establish the connection at all, it keeps asking for user credentials eventually failing with confusing error message, stating that the web folder is invalid. The other time Windows Explorer connects to a web folder at one dash.
We recommend you to obtain a real certificate from well known authority, or deploy Active Directory Certificate Services if all WebDav clients are bound to internal network.