This content has been marked as final.
Show 1 reply
-
1. Re: Redirect from HTTP to HTTPS in jboss eap 6.4
pjhavariotis Apr 6, 2017 7:37 AM (in response to utkarshjboss)In order to force https requests in JBoss you can either update accordingly the app's web.xml or configure a RewriteRule.
Since you don't want to change the web.xml of your app, you can add the following lines to the virtual-server in the web subsystem:
<rewrite pattern="^/(.*)$" substitution="https://localhost/$1" flags="RL">
<condition test="%{HTTPS}" pattern="off" />
</rewrite>
In this way, all the requests for the specific application context will be redirected to https.