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.
  • Click Next to reach the Server Roles step.
  • Select Role-based or feature-based installation as the installation type and click Next.
  • In the Server Selection step, choose Select a server from the server pool and click Next.
  • Select the Web Server (IIS) checkbox in the Server Roles step and click Next.
  • Click Add features to install the additional features that are required for IIS to run and click Next.

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

  • In Confirmation, review all settings and click Install.

2. Install additional Microsoft IIS modules


3. Configure Microsoft IIS HTTP Server

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

  • 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.
    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).
    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.
    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.