title: Tomcat infinite redirect loop
body: <p>I'm currently in the process of migrating a Java6 - Tomcat6-based webserver from Windows Server 2003 to Windows Server 2008 with extra security measures. However I've run into a problem with an infinite redirect loop when using HTTPS, it's configured identically to the previous server using a ForceHttpsFilter it should automatically redirect from http to https.</p>
  
  <p>HTTPS configuration is as follows, the certificate is valid:</p>
  
  <pre><code>    &lt;Connector port="443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
          enableLookups="false" acceptCount="100"
          debug="0" connectionTimeout="20000" disableUploadTimeout="true" 
          compression="on" compressableMimeType="text/html,text/xml" compressionMinSize="2048" 
          URIEncoding="UTF-8" sslProtocol="TLS" keystoreFile="D:\cms-java\Tomcat 6.0\cert\keystore.kdb"
          keystorePass="****" secure="true" SSLEnabled="true" scheme="https"
          ciphers="****"
      /&gt;
  </code></pre>
  
  <p>I've monitored with wireshark and it bounces between 302 found and a HTTP url response is returned.</p>
  
  <p>I can't really find anything wrong with the configuration myself, but if you have any tips for me for things to check out, that would be great.</p>