3 Replies Latest reply on Feb 18, 2003 8:54 PM by Robert Hedin

    how do i use port 80

    smeagel Newbie

      i can't find where to change the listen port to 80 instead of 8080?

      please help



        • 1. Re: how do i use port 80
          Robert Hedin Newbie

          Two ways if you're using JBossWeb and Windows--

          1) go to: $JBOSS_HOME/server/default/deploy/jbossweb.sar/META_INF/ and edit the jboss-service.xml file.

          Scroll the file untill you see the section commented (searching for 8080 will get you there)
          "Add and configure HTTP listener on port 8080" and change the default attribute for the "jetty.port" System Property from "8080" to "80" (this is also the file that you setup SSL btw).

          or

          2) Modify your startup script (or add an environment variable) and add the following to the JAVA_OPTS setting:
          -Djetty.port=80

          Note that if you're on a UNIX/Linux/Mac OS X box, there are issues with doing the above (ports < 1024 may only be hooked by the root user, so you're better off proxying port 80 to 8080 via ipchains, iptables, or similar).

          rob.

          • 2. Re: how do i use port 80
            smeagel Newbie

            ok i like the IPChains Idea, but i am using Tomcat/JBoss 3.0.6 on windoze 2k.
            i tried changing the server.xml file for tomcat but that didn't work. there must be a way.

            does jboss even use that server.xml ?

            thanks for your help

            -steve

            • 3. Re: how do i use port 80
              Robert Hedin Newbie

              I don't use Tomcat, however...

              Have you checked the $JBOSS_HOME/server/default/deploy directory?

              After unpacking JBoss+Tomcat, I see a Tomcat41-service.xml file there; edit that file. Locate the element; set the port attribute from 8080 to 80.

              rob.