2 Replies Latest reply on Aug 11, 2006 5:13 AM by Ramesh Kumar

    Can actual and alias IP share the same port

    Ramesh Kumar Newbie

      Hi all,

      I would like to explain my environment.

      FC4
      Apache 1.3.36
      JBoss 4.0.3SP1
      Mod_jk 1.2.15

      Apache is my front end server (serve static pages) and JBoss is the guy, do serve dynamic pages from back end.

      I have some applications (both SSL and non-SSL) to be deployed in Apache and JBoss. Apache is taken 80 to serve non-ssl applications, like JBoss taken 8080 and 443 ports for non-ssl and ssl applications.

      I have added the mod_jk module in Apache HTTP server, to forward the dynamic page requests (.jsp and .java) to JBoss. This environment is working fine with the following URL request, like

      http://static.http.non-ssl
      http://dynamic.jboss.non-ssl:8080
      https://dynamic.jboss.ssl

      Here, I am being stumped by http://dynamic.jboss.non-ssl:8080 application, Is there any way to run "dynamic.jboss.non-ssl" application without using the port 8080 in URL, like http://dynamic.jboss.non-ssl

      At this stage, these are the options I tried:

      1. I have created an alias IP (192.96.43.193) of my NIC (192.96.43.192) and changed JBoss port 8080 by 80 (used for non-ssl applications) and tried to run JBoss with 192.96.43.193 IP address. (given 192.96.4.192 for Apache HTTP server)

      command: sh run.sh -b 192.96.43.193

      The JBoss server throws the Bind Exception, so I revert that port 80 to 8080.

      2. I have given 192.96.43.193 to Apache and 192.96.43.192 to JBoss, I did not find any break through.

      I am almost lost here, my request is, I want to avoid the usage of port number in the URL of both JBoss and Apache server serve ssl and non-ssl applications.

      Thank you for reading with patience,
      Ramesh