Confluence 6 runs over SSL or HTTPS-redirects all URLS to HTT

Source: Internet
Author: User

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.

  1. 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.

  2. Otherwise, edit<CONFLUENCE_INSTALLATION>/confluence/WEB-INF/web.xml 文件中的内容。

  3. 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>
  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.