Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence redirectPort Change Not Redirecting to SSL

Mike Allen August 8, 2018

Trying to setup Confluence for SSL and redirect HTTP to HTTPS.  I can go to the HTTPS site, but the HTTP site won't redirect like the JIRA Software site does.

Server.xml

<Connector port="8090" connectionTimeout="20000" redirectPort="18443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"/>

<Connector port="18443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxHttpHeaderSize="8192" SSLEnabled="true"
maxThreads="150" minSpareThreads="25"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
sslEnabledProtocols="TLSv1.2,TLSv1.3"
clientAuth="false" useBodyEncodingForURI="true"
keyAlias="AGOProjectsTest" keystoreFile="E:\Program Files\Atlassian\JIRA\jre\bin\KeyStore.jks" keystorePass="changeit" keystoreType="JKS"/>

 

In the web.xml file under the WEB-INF folder - added the below code 

<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted URLs</web-resource-name>
<url-pattern>/</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

 

Changed Base URL to be HTTPS.  Not using any proxy, basic install

 

Any ideas what i'm missing?

1 answer

1 accepted

1 vote
Answer accepted
Alexis Robert
Community Champion
August 8, 2018

Hi @Mike Allen

 

in web.xml did you try changing 

 

<url-pattern>/</url-pattern>

with

<url-pattern>/*</url-pattern>
 

 

Just thinking it might be because you're not matching the proper URL pattern to  redirect.

 

Let me know if this helps, 

 

--Alexis

Mike Allen August 8, 2018

Thanks that was it!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events