1 – Setup > 1.3 Viewpoint security configuration > Configuring HTTPS in Tomcat > Modifying web.xml to enable HTTPS

Modifying web.xml to enable HTTPS

To enable HTTPS, you must modify the web.xml file. Add a security-constraint section to the $CATALINA_HOME/webapps/moab/WEB-INF/web.xml file.

To modify the web.xml file to enable HTTPS

  1. Open the web.xml file usually located in the $CATALINA_HOME/webapps/moab/WEB-INF/ directory.
  2. Add a <security-constraint> section to cause all pages to be hosted with HTTPS.
  3. <web-app>
      ...
        <security-constraint>
          <web-resource-collection>
            <web-resource-name>Viewpoint Secure URLs</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>

Modify the <url-pattern> text to specify which pages you want protected and which you do not.

Related topics 

© 2013 Adaptive Computing