SampleHTTPConnector
To bypass a reverse proxy or SSL configuration, introduce an additional HTTP connector in Tomcat. The following is a bare minimum HTTP connector for use in Tomcat across Atlassian Products:
<Connector port="8080" connectionTimeout="20000" maxThreads="200" minSpareThreads="10"
enableLookups="false" acceptCount="10" URIEncoding="UTF-8" />
To make use of this, edit the server.xml
file for the application in question. The connector must be added inside the Service
element. You will also need to restart the application to take effect.
You should adjust the value of the port
attribute in the new connector. Ensure to use a port that isn't already used by any application on the same physical machine. For example, if you have JIRA listening for incoming connections on port 8080 (which is in turn connected to a reverse proxy), you should change your new connector to something else, such as 8081.
Running Jira 7.12.3, 7.13.0 or higher?
In these versions of JIRA (and above) you must add some additional parameters to the connector:
relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
For more information, please see this Jira specific KB article.
If web.xml
has been edited as per our documentation to redirect to SSL, the following lines will need to be removed:
Bitbucket Server 5.0
As of Bitbucket Server 5.0, you can't configure any Tomcat connectors directly as the application runs on Spring Boot.
The usual server.xml
configurations have been replaced by properties that need to be configured on <Bitbucket home directory>
/shared/bitbucket.properties
Similarly, you can't configure web.xml.
In order to add a new HTTP connector for this purpose, this is the only configuration you need:
server.additional-connector.1.port=8080
Please read through Migrate server.xml customizations to bitbucket.properties