I have a project running on Wildfly 15. For one scenario I need to disable HTTP requests being redirected to HTTPS. When I run the web application on localhost everything is fine, but when I replace localhost with my IP, the HTTP request is redirected to HTTPS.! What configuration do I need to change to make it work properly?
This is part of my standalone.xml:
<server name="default-server">
<http-listener name="default" socket-binding="http" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<http-invoker security-realm="ApplicationRealm"/>
</host>
</server>