Fraud Blocker How to Install IIS on Windows and Map it to Match Data Pro

How to Install IIS on Windows and Map it to Match Data Pro

IIS MDP Config

Part 1: Install IIS on Windows Serverย 

  1. Open Server Manager (it usually opens automatically on startup)

  2. Click “Add roles and features”

  3. Click “Next” through the “Before you begin” screen

  4. Select “Role-based or feature-based installation” and click “Next”

  5. Select your server from the server pool and click “Next”

  6. Check “Web Server (IIS)”

  7. When prompted, click “Add Features” to include management tools

  8. Click “Next” through the Features screen

  9. On the Web Server Role (IIS) page, click “Next”

  10. Select these additional role services:

    • Under Application Development: check ASP.NET 4.8 and WebSocket Protocol
    • Under Common HTTP Features: all items should be selected by default
    • Under Health and Diagnostics: check HTTP Logging and Request Monitor
    • Under Performance: check Static Content Compression and Dynamic Content Compression
    • Under Security: check Request Filtering
  11. Click “Install” and wait for installation to complete

  12. Click “Close” when finished

  13. Open a browser and navigate to http://localhost to verify IIS is running (you should see the IIS welcome page)

Part 2: Install URL Rewrite and Application Request Routing Modules

  1. Download URL Rewrite Module from: https://www.iis.net/downloads/microsoft/url-rewrite
  2. Run the installer and follow the prompts to complete installation
  3. Download Application Request Routing (ARR) from: https://www.iis.net/downloads/microsoft/application-request-routing
  4. Run the installer and follow the prompts to complete installation
  5. Open Internet Information Services (IIS) Manager (Start โ†’ Internet Information Services (IIS) Manager)
  6. Click on your server name in the left tree (top level, not any site)
  7. Double-click “Application Request Routing Cache”
  8. Click “Server Proxy Settings” in the right Actions panel
  9. Check the box “Enable proxy”
  10. Set Time-out to 120 seconds
  11. Click “Apply”

Part 3: Remove the Default Web Site

  1. In IIS Manager, expand “Sites” in the left panel
  2. Right click on “Default Web Site”
  3. In the menu that pops up select “Remove”

Part 4: Create Your New IIS Site

  1. Select “Sites” in the left panel and select “Add Website” on the right panel
  2. Enter the following information:
    • Site name: Match Data Pro (or your preferred name)
    • Physical path: Click the “…” button and create a new folder at C:\inetpub\mdp, then select it
    • Binding – Type: http
    • Binding – IP address: All Unassigned
    • Binding – Port: 8081
      • you can use another port of your choosing as long as it is not in use
    • Binding – Host name: leave blank
  3. Click “OK”

Part 5: Get Your WSL2 IP Address and Docker Port

    1. Open the browser where the Match Data Pro login screen is loaded
    2. Look at the full address in the address bar โ€” it will read something like http://172.25.165.77:8080
    3. Note both values:
      • IP address (example: 172.25.165.77)
      • HTTP port (example: 8080) โ€” this is the port the MDP web app listens on inside WSL2
    4. The socket server runs on the same IP at port 8085. You will need this in Part 8.

Note: The external IIS port you set in Part 4 (8081) is separate from these WSL2 ports. Users connect to IIS on 8081; IIS forwards internally to the WSL2 ports (8080 for the app, 8085 for the socket server).

Part 6: Configure URL Rewrite Rule for Reverse Proxy

  1. In IIS Manager, click on your new site (โ€œMatch Data Proโ€) in the left panel
  2. Double-click โ€œURL Rewriteโ€ in the middle section
  3. Click โ€œAdd Rule(s)โ€ in the right Actions panel
  4. Select โ€œReverse Proxyโ€ and click โ€œOKโ€
  5. In the โ€œInbound Rulesโ€ field, enter the WSL2 IP including the HTTP port from Part 5, for example:
    • 172.25.165.77:8080
    • โš ๏ธ Do not enter the bare IP. Without the :8080, the proxy defaults to port 80 and the connection will fail.
  1. Click โ€œOKโ€
  2. Select the newly created rule and click โ€œEditโ€ in the right panel
  3. Confirm the Rewrite URL reads:
    • http://172.25.165.77:8080/{R:1}
    • (substitute your own IP; the :8080 and /{R:1} must be present)
  1. Locate the Server Variables section and click Add to create the following 3 server variables:
    • Name: HTTP_X_FORWARDED_HOST โ€” Value: {HTTP_HOST}
    • Name: HTTP_X_FORWARDED_PROTO โ€” Value: http
      • use https if you will serve the site over HTTPS
    • Name: HTTP_X_FORWARDED_FOR โ€” Value: {REMOTE_ADDR}
  1. Click โ€œApplyโ€ in the right Actions panel

Part 7: Enable Server Variables at Server Level

  1. Click “Back to Rules” in the right Actions panel to return to IIS Manager
  2. Click on your server name (newtesting) in the left tree at the TOP level (not the Match Data Pro site)
  3. Double-click “URL Rewrite”
  4. In the right Actions panel, click “View Server Variables”
  5. Click “Add” to add the first server variable:
    • Server variable name: HTTP_X_FORWARDED_HOST
    • Click “OK”
  6. Click “Add” again for the second variable:
    • Server variable name: HTTP_X_FORWARDED_PROTO
    • Click “OK”
  7. Click “Add” again for the third variable:
    • Server variable name: HTTP_X_FORWARDED_FOR
    • Click “OK”
  8. Click “Back to Rules” in the right Actions panel

Part 8: Add a Reverse Proxy Site for the Socket Server (Port 8085)

The socket server runs separately inside WSL2 on port 8085 and must be proxied with its own site. The prerequisites are already in place from earlier parts:

    • WebSocket Protocol feature โ€” installed in Part 1, step 10. ARR forwards WebSocket upgrade requests automatically once this feature is present; no extra rule is required.
    • ARR proxy enabled โ€” done in Part 2.
  1. In IIS Manager, select โ€œSitesโ€ in the left panel, then โ€œAdd Websiteโ€ on the right
  2. Enter the following:
    • Site name: Match Data Pro Socket
    • Physical path: click โ€œโ€ฆโ€, create a new folder at C:\inetpub\mdp-socket, then select it
    • Binding โ€“ Type: http
    • Binding โ€“ IP address: All Unassigned
    • Binding โ€“ Port: 8085
    • Binding โ€“ Host name: leave blank
  1. Click โ€œOKโ€
  2. Select the new โ€œMatch Data Pro Socketโ€ site โ†’ double-click โ€œURL Rewriteโ€
  3. Click โ€œAdd Rule(s)โ€ โ†’ select โ€œReverse Proxyโ€ โ†’ โ€œOKโ€
  4. In the โ€œInbound Rulesโ€ field, enter the WSL2 IP with the socket port, for example:
    • 172.25.165.77:8085
  1. Click โ€œOKโ€, then select the new rule and click โ€œEditโ€
  2. Confirm the Rewrite URL reads:
    • http://172.25.165.77:8085/{R:1}
  1. In the ruleโ€™s Server Variables section, add the same three variables as in Part 6:
    • HTTP_X_FORWARDED_HOST = {HTTP_HOST}
    • HTTP_X_FORWARDED_PROTO = http (or https)
    • HTTP_X_FORWARDED_FOR = {REMOTE_ADDR}
    • (these are already registered at the server level in Part 7, so no additional server-level step is needed)
  1. Click โ€œApplyโ€

After this, the MDP frontendโ€™s socket configuration (SOCKET_API_LINK) must point to the external socket URL: http://YourServerIP:8085. Use https if you serve over TLS.

Part 9: Restart IIS

  1. In IIS Manager, click the server name at the top level
  2. Select โ€œStopโ€ from the right panel menu
  3. Wait 3โ€“5 seconds
  4. Select โ€œStartโ€ from the right menu
  5. From a browser outside the server, verify both endpoints:
    • Web app: http://YourServerIP:8081 (or the external port you configured in Part 4)
    • Socket server: http://YourServerIP:8085