Although now HTTPS is now active and available. The old HTTP URLs (http://localhost:8090) are still accessible. Now you need to redirect all URLs to their HTTPS link. You can pass the
web.xml
Add security constants to the file to achieve this. This allows Tomcat to redirect access to SSL that is not an SSL port.
Check to see if the users of your confluence site are using RSS macro. If your site has RSS macro enabled, you may need to configure Confluence URL redirection in your firewall rules without having to modify the file to do so web.xml
. Please skip the steps below and then visit the RSS Feed Macro page for more information.
Otherwise, edit<CONFLUENCE_INSTALLATION>/confluence/WEB-INF/web.xml 文件中的内容。
Add the following definition to the footer of the file, but you need to</web-app> 标签的前面:
<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>
|
Restart confluence and then visit http://localhost:8090, now you should be redirected directly to https://localhost:8443/login.action.
The confluence has 2 Web. xml files. The other file <CONFLUENCE_INSTALLATION>/conf/web.xml。
should be modified only in accordance with the content described above <CONFLUENCE_INSTALLATION>/confluence/WEB-INF/web.xml
.
Https://www.cwiki.us/display/CONF6ZH/Running+Confluence+Over+SSL+or+HTTPS
Confluence 6 runs over SSL or HTTPS-redirects all URLS to HTT