3 Replies Latest reply on Mar 29, 2013 1:40 PM by Óscar Zafra

    Config port 8080 to 80 and 8443 to 443

    Raul Alvarez Newbie

      Hello, I'm trying to set up two web applications in JBoss 7.1.1 Final without using Apache, web applications are are within a ear, and I need to be listening on port 80 and 443, for that I modifcado standolone file . xml, specifically I modified these lines.
      name="http" <socket-binding port="80"/>
      name="https" <socket-binding port="443"/>

      I've also added a virtual server as follows.
        name="www.mydomain.com" <virtual-server default-web-module="mydomain">
                       <alias name="www.mydomain.com"/>
        </ virtual-server>.

      Upon entering https://www.mydomain.com. Works fine.
      But upon entering http://www.mydomain.com. I https://www.mydomain.com:8443 redirects.
      Showing the port, as I can do to redirect to port 443. I tried to add in the http connector (redirect-port).

      name="http" <Connector protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="443"/>
      but It does not work

       

      Thanks in advance.