Skip to content

Apache TomCat

Java Tomcat webserver HTTPS redirection

C:\Program Files\Atlassian\JIRA\conf\server.xml


<Connector port="80"
           maxThreads="150"
           minSpareThreads="25"
           connectionTimeout="20000"
           enableLookups="false"
           maxHttpHeaderSize="8192"
           protocol="org.apache.coyote.http11.Http11NioProtocol"
           useBodyEncodingForURI="true"
           redirectPort="443"
           acceptCount="100"
           disableUploadTimeout="true"
           bindOnInit="false"/>

<Connector port="443"
           protocol="org.apache.coyote.http11.Http11NioProtocol"
           scheme="https"
           secure="true"
           SSLEnabled="true"
           SSLProtocol="TLS"
           sslEnabledProtocols="TLSv1.2" 
           clientAuth="false"
           keystoreFile="C:\Program Files\Atlassian\JIRA\conf\company.cert.pfx"
           keystorePass="xxx"
           keystoreType="PKCS12"
           socket.txBufSize="64000"
           socket.rxBufSize="64000"
           tcpNoDelay="1"
           maxHttpHeaderSize="8192"
           maxThreads="150"
           minSpareThreads="25"
           connectionTimeout="20000"
           enableLookups="false"
           useBodyEncodingForURI="true"
           acceptCount="100"
           disableUploadTimeout="true"
           bindOnInit="false"/>
C:\Program Files\Atlassian\JIRA\conf\web.xml
    <security-constraint>
    <web-resource-collection>
        <web-resource-name>all-except-attachments</web-resource-name>
        <url-pattern>*.jsp</url-pattern>
        <url-pattern>*.jspa</url-pattern>
        <url-pattern>/browse/*</url-pattern>
        <url-pattern>/issues/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

C:\Program Files\Atlassian\JIRA\example\catalina.out - example