Configuring Tomcat to redirect all HTTP requests to HTTPS

To force the Web server redirect all calls to a secure connection:

  1. Use a self-signed certificate or a certificate generated by a Certificate Authority (CA).

    InfoPrint Manager Web server already provides a sample self-signed certificate. The certificate must be signed by the trusted third party so that it can work in the visitors browsers without warnings. To obtain a signed certificate, choose a CA and follow its instruction.

  2. Install and configure the Web server so that you can use your certificate. For more information, see Enabling Secure Sockets Layer (SSL) in the Web Server for HTTPS protocol . To use the sample certificate, enable the SSL connector in /usr/lpp/pd/ipmws/conf/server.xml file.
  3. Go to /usr/lpp/pd/ipmws/conf/web.xml file, scroll to the bottom of the file and add the following just above the </web-app> entry:
    <!-- Force HTTPS, required for HTTP redirect! -->
    <web-resource-name>Protected Context</web-resource-name>
    <!-- auth-constraint goes here if you require authentication -->
  4. Save the web.xml file and restart the web server from MMI for these changes to take effect.
  • If you have multiple web servers running, make sure that they all use the same HTTP or HTTPS protocol.