Knowledgebase

Search:     Advanced search

Configuring Web Servers for the Surround SCM WebDAV CGI

Article ID: 662  |  Last updated: 12 Aug, 2016

Note: The following information only applies to Surround SCM 2016.0 and earlier.

Before you can use WebDAV with Surround SCM, you need to change the web server configuration to make sure that script execution is enabled for the directory that contains the WebDAV CGI and that users can log in. Configuration information is provided for the Apache and Microsoft Internet Information Services (IIS) web servers. See the web server documentation for information about enabling CGI execution and authentication.

Configuring Apache

  1. Open the Apache configuration file. The file name is usually httpd.conf.
  2. Find the directive for the directory that contains the WebDAV CGI. For example, C:\Program Files\Apache Group\Apache\cgi-bin.
  3. Add the following line to the directive to enable CGI execution for the directory: Options +ExecCGI
  4. Add the following lines to the directive to allow Windows to recognize the WebDAV CGI as a DAV provider:
    Header set DAV "1, 2"
    Header set MS-Author-Via DAV

    These settings require the Apache mod_headers module. Make sure you enable the following lines in the configuration file:
    LoadModule headers_module modules/mod_headers.so
    AddModule mod_headers.c
  5. Add the following lines to the directive to enable authentication:
    RewriteEngine on
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]

    If you copy and paste the Rewrite Rule line into the directive, the spaces in the line may not be correct. We recommend typing the line to ensure the spacing is correct.
  6. Save and close the configuration file.
    These settings require the Apache mod_rewrite module. Make sure you enable the following lines in the configuration file:
    LoadModule rewrite_module modules/mod_rewrite.so
    AddModule mod_rewrite.c

Configuring Microsoft IIS

  1. On the Start menu, choose Settings > Control Panel > Administrative Tools > Internet Information Services.
  2. Select the virtual directory that contains the WebDAV CGI.
  3. Choose Action > Properties.
  4. Select Scripts and Executables from the Execute Permissions list.
  5. Click the Directory Security tab.
  6. Click Edit in the Anonymous access and authentication control area.
  7. Clear the Integrated Windows authentication check box.
  8. Click OK to close the Authentication Control dialog box.
  9. Click the Custom Errors tab.
  10. Select all of the errors.
  11. Click Set to Default.
  12. Click OK to close the Properties dialog box.
  13. Close the Internet Information Services dialog box.
Article ID: 662  |   Last updated: 12 Aug, 2016
Tags
Apache IIS WebDAV

Prev   Next
Surround SCM Server System Requirements     Uninstalling PostgreSQL