tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Geery <>
Subject iis isapi redirect problem
Date Sat, 18 Jul 2015 13:15:30 GMT
I have successfully gotten Tomcat 8 to work with IIS 8.5 using these

IIS correctly forwards requests to Tomcat to handle and Tomcat correctly
hands the response back to IIS to return to the client.  This works over
http and over https.

Now there is a requirement that all traffic should go over ssl, so in IIS I
added the following redirect to C:\inetpub\httproot:

<?xml version="1.0" encoding="UTF-8"?>
        <httpRedirect enabled="true" destination="<https location of the
site>" exactDestination="false" httpResponseStatus="Found" />

The effect of this is that when a client requests a page over http, the
server sends a redirect (302) to the same page over https.  This works for
other, non-Tomcat related pages on the site.  However, it does not work for
pages that use the ISAPI redirector.  When a Tomcat page is requested, the
URL that is returned is


That is, what seems to be happening is that rather having the ISAPI handler
render the page, the extension_uri value from the registry entry is being
returned to the client.

My questions are:
1) is there a better way to force http -> https in IIS? or
2) if not, is there a way to get IIS/ISAPI to work with a redirect (301 or


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message