4 Replies Latest reply on May 27, 2014 5:55 AM by ctomc

    How can I run Wildfly under port 80 on linux

    adrianosch

      Currently I am running Wildfly on port 8080, and using a network NAT to forward requests made on port 80. Therefore, http clients are accessing the server transparently on port 80: eg. http://abc.xyz/myapp.

      However, when I call ServletRequest#getServerPort, I got 8080 instead of 80.

       

      I think that on AS7 it could be done like this:

      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" proxy-name="abc.xyz" proxy-port="80"/> 
      

      But there is no "proxy-port" attribute in undertow subsystem.

       

       

      Does anyone know a solution for this problem without using a httpd proxy?