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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.