0 Replies Latest reply on Aug 19, 2011 8:12 AM by Zdeněk Zikán

    Application not available after translating port

    Zdeněk Zikán Newbie

      Hello,

       

      I have an application that is running in JBoss 4.2.2 on port 8080 (http://myserver:8080/my/url). When I access it on that URL it works fine. If I put following rule to iptables to translate port 80 to 8080:

      iptables -t nat -I PREROUTING -p tcp -d 192.168.12.110 --dport 80 -j DNAT --to 192.168.12.110:8080

      it doesn't allow me to access that page on port 80 as I would expect - instead I get an error page with message "The server has not found anything matching the request URI." Interestingly enough, when I translate port e.g. 8888 to 8080, accessing http://myserver:8888/my/url works. Could somebody point me what could be the reason for it? If you need any part of my jboss configuration, just say what.

       

      Thanks,

      Zdenek