4 Replies Latest reply on May 6, 2014 8:17 PM by jenchong

    https://localhost:8443

    jenchong

      We setup transport confidential in our web.xml e.g.

      ...

                  <url-pattern>/xxx</url-pattern>

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

                  <url-pattern>/_ah/mail/*</url-pattern>

               </web-resource-collection>

              <user-data-constraint>

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

              </user-data-constraint>

       

      But when we hit http://localhost/xxx, it is redirected to https://localhost:8443/xxx? Why? What is the workaround to make it work locally if this is another "feature" of Wildfly/Undertow?

       

      In GAEJ, it is correctly redirected to just http://localhost/xxx as there is no SSL support for local dev_server.

        • 1. Re: https://localhost:8443
          jaikiran

          Jen Chong wrote:

           

          We setup transport confidential in our web.xml e.g.

          ...

                      <url-pattern>/xxx</url-pattern>

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

                      <url-pattern>/_ah/mail/*</url-pattern>

                   </web-resource-collection>

                  <user-data-constraint>

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

                  </user-data-constraint>

           

          But when we hit http://localhost/xxx, it is redirected to https://localhost:8443/xxx? Why?

          Because your web.xml states that the /xxx path needs to be served as CONFIDENTIAL and hence it is redirected to the https protocol. It's working as expected.

          • 2. Re: https://localhost:8443
            jenchong

            See, we need to use ssl in the cloud/ openshift but locally you dont have that. So what is the solution without toggling it to work in both?

            • 3. Re: https://localhost:8443
              alesj

              You can have ssl locally as well.

              • 4. Re: https://localhost:8443
                jenchong

                What is the syntax?