Search code examples
ssljbosswildfly-10undertow

Configure http to https redirection in wildfly


I have a myapp.war deployed on my Wildfly 10.1.0 server, All http request are redirected to https using the 8443 port.

Is there a configuration in Wildfly to make an exception for a specific URL ?

For example I'd like that http://localhost:8080/myapp/unprotected doesn't redirect to https://localhost:8443/myapp/unprotected.

Thanks,


Solution

  • You specify security constraints as described in The Java EE 6 Tutorial, Volume I.

    One for the protected and one for the unprotected resources. For the latter you omit the user-data-constraint.