After you set ManualWorks to handle HTTPS requests, redirect all HTTP requests to HTTPS as follows.
1
Set two Connector tags in the server.xml file
You must set a Connector tag that receives HTTP requests as well as one for HTTPS requests, so that HTTP requests can be changed to HTTPS. Set them as follows.
3RABBITZ_HOME refers to the directory where ManualWorks is installed.
Open the
3RABBITZ_HOME/tomcat/conf/server.xmlfile.Set two
Connectors that receiveHTTPandHTTPSrequests, directly under theServicetag.Tags and attributes are case-sensitive.
The first
Connectortag is forHTTP, and the second is forHTTPS. Change thekeystoreFile,keystorePass, andkeystoreTypeattributes of the secondConnectortag to match your certificate.In the example, the
portof the secondConnectortag is 443, the default HTTPS port. To match it, theportof the firstConnectortag is 80, the defaultHTTPport, instead of 1975. Change them to fit your environment.
<Connector port="80" protocol="HTTP/1.1" relaxedQueryChars="^`\|{}[]"
connectionTimeout="20000" redirectPort="443" URIEncoding="UTF-8"
maxPostSize="-1" Server="3Rabbitz" />
<Connector port="443" protocol="HTTP/1.1" relaxedQueryChars="^`\|{}[]"
connectionTimeout="20000" URIEncoding="UTF-8"
maxPostSize="-1" Server="3Rabbitz"
SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="E:\3rabbitz-key\mycert.pfx"
keystorePass="1234"
keystoreType="PKCS12" />HTTPS settings depend on the certificate you received. We recommend following the Apache Tomcat 9.0 guide from your certificate provider.
Restart ManualWorks.
Check that ManualWorks handles both
HTTPandHTTPSrequests.
2
Add the security-constraint tag to the web.xml file
3RABBITZ_HOME refers to the directory where ManualWorks is installed.
Open the
3RABBITZ_HOME/tomcat/conf/web.xmlfile.Add the
security-constrainttag at the end, before the closingweb-apptag.
<web-app>
<!-- content omitted -->
<security-constraint>
<web-resource-collection>
<web-resource-name>All Requests</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>Restart ManualWorks.
Check that ManualWorks redirects HTTP requests to HTTPS.