I have a WildFly application running in standalone mode. I used to use http but are now using using https. I have the redirect from http to https working using
<http-listener name="default" socket-binding="http" redirect-socket="https">
in standalone.xml and the following in web.xml
What do I need to add to standalone.xml to perform the above redirect?
Do I also need to add somethign to the web.xml file?
You have 2 options.
1. Add the shortname to your certificate as SAN (subject alternative name).
Make application handle the redirects.
2. Add an vhost in front of wildfly with apache or nginx.
Let vhost handle ssl and redirects.