Microsoft IIS Web Server

Note: The instructions are provided for IIS 8.5.

Enabling IIS components

Run the following command in an elevated command prompt (run as Administrator):

dism /online /enable-feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-WebServerManagementTools /FeatureName:IIS-ManagementScriptingTools

Enabling IIS components for Megaladata Studio

Run the following command in an elevated command prompt:

dism /online /enable-feature /FeatureName:IIS-CommonHttpFeatures /FeatureName:IIS-StaticContent /FeatureName:IIS-DefaultDocument /FeatureName:IIS-Performance /FeatureName:IIS-HttpCompressionStatic

Web.config

Place a web.config file with the following content into the Megaladata\Client directory:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpProtocol>
            <customHeaders>
                <remove name="Cache-Control" />
                <add name="Cache-Control" value="no-cache,must-revalidate" />
            </customHeaders>
        </httpProtocol>
        <staticContent>
            <remove fileExtension=".json" />
            <mimeMap fileExtension=".json" mimeType="application/json" />
            <remove fileExtension=".woff" />
            <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
            <remove fileExtension=".woff2" />
            <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
        </staticContent>
    </system.webServer>
</configuration>

Configuring WebSocket proxy

  • Download and install the ARR 3.0 module.
  • Download and install the Rewrite module.
  • Enable the WebSockets component:
dism /online /enable-feature /FeatureName:IIS-WebSockets
  • Restart IIS:
%windir%\system32\iisreset.exe
  • Enable the proxy function in ARR:
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/proxy /enabled:"True"
  • Update the web.config file with the following configuration:
<system.webServer>
...
    <rewrite>
        <rules>
            <rule name="websocket_proxy" patternSyntax="ECMAScript" stopProcessing="false">
                <match url="ws/" />
                <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                    <add input="{CACHE_URL}" pattern="(ws|http)s?://(.*)" />
                </conditions>
                <action type="Rewrite" url="{C:1}://127.0.0.1:8080/" appendQueryString="false" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>

Creating a virtual directory for Megaladata Studio

The following command adds the /app virtual directory to the Default Web Site:

```cmd "%windir%\system32\inetsrv\appcmd.exe" add vdir /app.name:"Default Web Site/" / /path:/app /physicalPath:"%ProgramFiles%\Megaladata\Client"

Read on: Megaladata Server Configuration (Windows)

results matching ""

    No results matching ""