2 Replies Latest reply on Aug 19, 2003 11:14 PM by mortsahl

    URL Help

    mortsahl

      I'm running JBoss 3.2.1 with Tomcat 4.1.24 integrated.

      I'm redirecting port 8080 to 80 with ...

      /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

      I've deployed a war file -- idea.war

      My app runs fine with the following URL -- http://www.mydomain.com/idea ...

      What do I need to do so that the app runs just by calling the domain name (ie, http://www.mydomain.com) ?

      Thanks

        • 1. Re: URL Help
          jonlee

          You need to remap your whole application to the root context - I assume this is your requirement, anyway. You can add a jboss-web.xml to your WAR deployment (in WEB-INF). It would contain the following:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">
          <jboss-web>
          <context-root>/</context-root>
          </jboss-web>

          You can view the DTD for jboss-web.xml in docs/dtd of your JBoss distribution.

          Hope that is the information for which you are looking.

          • 2. Re: URL Help
            mortsahl

            Thanks jonlee -- you came thru again!