How to configure Microsoft IIS HTTP Server as a reverse proxy for Sapho Server running on Apache Tomcat

Last update:

Audience: System administrators installing and configuring Sapho Server

 

This is step-by-step guide for Microsoft Windows Server operating systems and these steps may vary slightly depending on your configuration and environment.

 

1. Install Microsoft IIS HTTP Server

  • Open the Server Manager and click Add Roles and Features.
    1.png
  • Click Next to reach the Server Roles step.
    2.png
  • Select Role-based or feature-based installation as the installation type and click Next.
    3.png
  • In the Server Selection step, choose Select a server from the server pool and click Next.
    4.png
  • Select the Web Server (IIS) checkbox in the Server Roles step and click Next.
    5.png
  • Click Add features to install the additional features that are required for IIS to run and click Next.

    6.png
  • Click Next until you reach Web Server Role (IIS). In Roles Services, select all the options under the Security section and click Next.
    8.png

    9.png
  • In Confirmation, review all settings and click Install.
    10.png

2. Install additional Microsoft IIS modules

 

3. Configure Microsoft IIS HTTP Server

  • Launch IIS.
  • Delete the IIS Default Website.
    11.png
  • In the Navigation Pane, click Sites and then click Add Website.

    12.png
  • Fill in the following fields:
    1. Site Name - A friendly name for your website
    2. Physical Path - A path leading to an empty folder of your choice
    3. Other Settings -Leave default
  • Configure the IIS Site.
    1. Select your created site and doubleclick on URL Rewrite.
      13.png
    2. In the Actions Pane, click Add Rules.
    3. In the Add Rules dialogue, select Reverse Proxy.
    4. As the Inbound Rule Server Name, enter localhost:8080 (assuming that Tomcat is running on the default port 8080).
      14.png
    5. Leave all other settings as default.

  • Add HTTPS bindings.
    1. Select the site and in the Actions pane, click Bindings.
    2. Click Add to create a new binding.
    3. Select https as the Type, choose a port (default is 443), and select a certificate.
    4. Enter your domain name.
      16.jpg
    5. Save the settings.

4. Test

  • Open Safari, Chrome, Opera, or Internet Explorer browser and launch https://<your domain>. The Sapho page should be displayed.