Configuring IIS Windows 7 / Server 2008

Microsoft’s Internet Information Services (IIS) or Internet Information Server, is a Web Server for use with Windows NT. IIS is not turned on by default when Windows is installed and can be accessed through the Microsoft Management Console or Administrative Tools in the Control Panel. This section applies to IIS 7.0 which comes standard in Windows 7 and Server 2008. These steps might not be exact–refer to the latest Microsoft documentation.

To verify the IIS installation:

  1. Navigate to Control Panel\Programs\Programs and Features.

    NOTE: There are multiple ways to navigate the Windows operating system. This method uses a path in the Windows Explorer.

    The Programs and Features window opens.

    The Programs and Features page.

  2. On the left column, click Turn Windows Features on or off.

    The Windows Features window opens.

  3. Expand Internet Information Services.

    Window Features, Internet Information Services

  4. Select your options. The ones listed below are required.

    • Web Management Tools > IIS Management Console
    • World Wide Web Services > Application Development Features > CGI
    • World Wide Web Services > Security > Windows Authentication
  5. Click OK.

    The dialog box closes.

    NOTE: You might need to restart your computer for these features to take effect.

To create a virtual directory:

  1. Navigate to Control Panel\System and Security\Administrative Tools.

    NOTE: There are multiple ways to navigate the Windows operating system. This method uses a path in the Windows Explorer.

    The Administrative Tools window opens.

    The Administrative Tools window.

  2. Click Internet Information Services (IIS).

    The Internet Information Services (IIS) Manager opens.

    The IIS Manager showing the Default Web Site.

  3. On the Connections pane on the left, expand the local computer and Sites.

    The Default Web Site displays.

  4. Right-click Default Web Site and select Add Virtual Directory from the menu.

    The Add Virtual Directory dialog box opens.

    The Add Virtual Directory dialog box.

  5. For the Alias, enter cgi-bin and for the Physical Path, browse for the path to the dlcgi.exe file. The default path is C:\DI\Solution\diveline\cgi-bin.
  6. Click Connect as.

    The Connect As dialog box opens.

    The Connect As dialog box.

  7. Select the Specific User radio button, Set, fill in the credentials for the user account running DiveLine, and click OK.
  8. Do one of the following:

    • If DiveLine and the Web Server are on the same machine, copy the \diveline\install-files\dlcgi-local.cfg file to the diveline\cgi-bin directory.

      DLCGI local file.

    • If DiveLine and the Web Server are on different machines, copy the \diveline\install-files\dlcgi-remote.cfg file to the diveline\cgi-bin directory.

      DLCGI local remote file.

  9. Rename the copied cfg file to dlcgi.cfg and open the file to verify the dl-dataroot directory path, or the server and port number.

    NOTE: Repeat Step 1 to 8 for each virtual directory.

To set the permissions to allow DLCGI to run:

  1. Navigate to Control Panel\System and Security\Administrative Tools.

    NOTE: There are multiple ways to navigate the Windows operating system. This method uses a path in the Windows Explorer.

    The Administrative Tools window opens.

    The Administrative Tools window.

  2. Click Internet Information Services (IIS).

    The Internet Information Services (IIS) Manager opens.

    The IIS Manager showing the Default Web Site.

  3. Navigate to the virtual directory you created previously, cgi-bin.
  4. On the center pane, double-click Authentication.

    The Authentication options open.

    The Authentication options for IIS Manager.

  5. Enable Windows Authentication and disable all other authentication methods.
  6. Right-click Windows Authentication, and select Providers from the menu.

    The Providers dialog box opens.

    Providers window.

  7. Remove Negotiate from the Enabled Providers and click OK.
  8. Select the virtual directory again, double-click Handler Mappings.

    The Handler Mapping options.

  9. Double click CGI-exe.

    The Edit Module Mapping dialog box opens.

    The Edit Module Mapping dialog box.

  10. Click the browse button for the Executable box, and browse to the location of the dlcgi.exe file. The default value is C:\DI\Solution\diveline\cgi-bin\dlcgi.exe. If you cannot see the executable, select exe from the file type pull-down menu.
  11. Click OK.

    The Edit Module Mapping window opens.

    The Edit Module Mapping dialog box for configuring Windows for a web server.

  12. Click Yes to accept the changes.

    The dialog box closes.

  13. Right-click CGI-exe, and select Edit Feature Permissions from the menu.

    The Edit Feature Permissions dialog box opens.

    The Edit Feature Permissions dialog box.

  14. Select the Read, Script, and Execute check boxes, and click OK. This enables CGI-exe.
  15. Test this configuration by running dlcgi.exe?raw:

    Open a web browser and enter in http://<servername>/cgi-bin/dlcgi.exe?raw.

    NOTE: This page might ask for a username and password. Use the server username. For this example, the username is jsmith.

    Here is the resulting page:

    dlcgi.exe?raw

    IIS is now configured for DiveLine’s Web Server authentication under Windows 7.