Configuring IIS 7 for Relay Server

Configure the IIS 7 to host a Relay Server.

This task involves editing the IIS applicationHost.config file.

Note: This task configures IIS for anonymous access to Relay Server. You should configure appropriate security for IIS and Relay Server, based on your business requirements.
  1. Back up the applicationHost.config file (usually located in the System32\inetsrv\config\ directory).
  2. Open applicationHost.config in a text editor.
  3. Create a Relay Server application pool.

    Insert the following snippet in the <applicationPools> collection:

    <add name="RelayServer" queueLength="65535" autoStart="true" 
            managedRuntimeVersion="" managedPipelineMode="Integrated">
        <processModel identityType="LocalSystem" idleTimeout="00:00:00" 
                maxProcesses="20" pingingEnabled="false" 
                pingInterval="00:00:30" pingResponseTime="00:01:30" />
        <recycling disallowOverlappingRotation="true">
            <periodicRestart time="00:00:00">
                <schedule>
                    <clear />
                </schedule>
            </periodicRestart>
        </recycling>
        <failure rapidFailProtection="false" />
        <cpu resetInterval="00:00:00" />
    </add>       
    
  4. Add the Relay Server application to the default Web site.

    Insert the following snippet in the <site name="Default Web Site"> element:

    <application path="/ias_relay_Server" applicationPool="RelayServer">
        <virtualDirectory path="/" 
                physicalPath="C:\Inetpub\wwwroot\ias_relay_server" />
    </application>
    
  5. Enable Web extensions for Relay Server.

    Insert the following snippet in the <isapiCgiRestriction> collection.

    <add path="C:\Inetpub\wwwroot\ias_relay_server\Client\rs_client.dll" 
            allowed="true" />
    <add path="C:\Inetpub\wwwroot\ias_relay_server\Server\rs_server.dll" 
            allowed="true" />
    
  6. Add Relay Server locations to the default Web site.

    Insert the following snippet in the <configuration> element.

    <location path="Default Web Site/ias_relay_server/client">
        <system.webServer>
            <handlers accessPolicy="Execute, Script">
            </handlers>
        </system.webServer>
    </location>
    
    <location path="Default Web Site/ias_relay_server/server">
        <system.webServer>
            <handlers accessPolicy="Execute, Script">
            </handlers>
        </system.webServer>
    </location>
    
    <location path="Default Web Site/ias_relay_server">
        <system.webServer>
            <security>
                <authentication>
                    <anonymousAuthentication userName="" />
                </authentication>
                <requestFiltering>
                    <requestLimits maxAllowedContentLength="2147483647" />
                </requestFiltering>
            </security>
        </system.webServer>
    </location>
    
  7. Save your changes in the applicationHost.config file.
  8. Open a Web browser, and confirm that http://localhost:80 loads the default page correctly.
Related tasks
Configuring Unwired Server to use Relay Server