2 Replies Latest reply on May 17, 2002 5:17 PM by cnagyxyz

    How do I change Tomcat's Server port from 8080 to say 80?

    dplante

      Q. How do I change Tomcat’s Server port from 8080 to 80 using the JBoss-2.4.4-Tomcat-4.0.1 integrated package?

      A. JBoss will NOT read the server.xml of Catalina (tomcat4).
      To change port, edit $JBOSSHOME/conf/Catalina/jboss.jcml and look for the mbean configuration:



      then change it as follows:


      80


      after you restart JBoss (with Tomcat/Catalina), you will find that the port is changed to 80.

      [note: rewrote syzero's solution from another forum on this site :) ]

        • 1. Re: How do I change Tomcat's Server port from 8080 to say 80
          andrika

          Here's the solution for Jetty:

          Change the jetty.xml file:





          80
          ...

          Andrea

          • 2. Re: How do I change Tomcat's Server port from 8080 to say 80
            cnagyxyz

            Here is the change for Tomcat's Server port from 8080 to 80 using JBoss-3.0.0RC2-Tomcat 4.0.3:

            Edit $JBOSSHOME/server/default/deploy/tomcat4-service.xml look for the connector configuration:

            <Connector className = "org.apache.catalina.connector.http.HttpConnector"
            port = "8080" minProcessors = "3" maxProcessors = "10" enableLookups = "true" acceptCount = "10" debug = "0" connectionTimeout = "60000"/>

            and change the port attribute to "80":

            <Connector className = "org.apache.catalina.connector.http.HttpConnector"
            port = "80" minProcessors = "3" maxProcessors = "10" enableLookups = "true" acceptCount = "10" debug = "0" connectionTimeout = "60000"/>

            restart JBoss