-
1. Re: Jboss redirects to invalid URL
jaikiran Sep 7, 2016 1:25 AM (in response to mhemple)Are you sure it is the EAP server is doing that and not some load balancer front end that your production systems might have been configured to use? Would your production environment admins know?
The other place to check is the web subsystem configuration of your standalone/domain xml and see what redirect-port it is configured for (in case a secure resource is accessed on non-secure port).
-
2. Re: Jboss redirects to invalid URL
mhemple Sep 7, 2016 12:46 PM (in response to jaikiran)Thanks. The web subsystem configuration was not correct. I added an https connector and now its working.
<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8443"/>
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true" enabled="true">
<ssl name="ssl" password="ChangeMe" certificate-key-file="${jboss.server.config.dir}/server.keystore" verify-client="want" ca-certificate-file="${jboss.server.config.dir}/server.truststore"/>
</connector>
<virtual-server name="default-host" enable-welcome-root="false">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>