I'd like to force use of https in Jetty 9. Apparently:
no longer works in jetty 9. How should I do it properly?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
This resource says to add this to your web.xml
<web-app> ... <security-constraint> <web-resource-collection> <web-resource-name>Everything in the webapp</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>