UCSD HTTP -> HTTPS Redirect

Version 2

    In order to re-direct HTTP to HTTPS in UCSD please edit the flowing 2 files:

     

     

     

    1. 1. Edit file: /opt/infra/web_cloudmgr/apache-tomcat/conf/server.xml

    o   Update redirectPort to “443” (Highlighted below)

                    <Connector port="80" protocol="HTTP/1.1"

                                    connectionTimeout="20000"

                   redirectPort="443" maxHttpHeaderSize="65536"/>

     

    1. Edit file: /opt/infra/web_cloudmgr/apache-tomcat/conf/web.xml

    o   Add following lines (anywhere in the file)

     

                    <security-constraint>

                      <web-resource-collection>

                    <web-resource-name>HTTPSOnly</web-resource-name>

                    <url-pattern>/*</url-pattern>

                    </web-resource-collection>

                    <user-data-constraint>

                    <transport-guarantee>CONFIDENTIAL</transport-guarantee>

                     </user-data-constraint>

         </security-constraint>