0

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>
Romeo Ninov
  • 5,263
  • 4
  • 20
  • 26
  • I dont know anything but even me guess you should look at words like https, socket-binding in your standalone.xml , remove https-listener tag and check is it works. Am i right? At least you should check documentation. https://docs.wildfly.org/21/Admin_Guide.html#server-configuration think, read, try – gapsf Sep 13 '22 at 05:45
  • redirect-socket https://docs.wildfly.org/21/Admin_Guide.html#http-connector – gapsf Sep 13 '22 at 06:00
  • Maybe you use http proxy – gapsf Sep 13 '22 at 06:03

0 Answers0