title: Apache Tomcat Listen Multiple Ports
body: <p>I have a Windows based Apache Tomcat installation.  The application is currently listening on port 8080.  I would like to create a redirect from the root of port 80 to the site being hosted in a sub directory on 8080.  </p>
  
  <p>Instead of entering the long URL to access the site (<a href="http://servername:8080/subdirectory/index.jsp" rel="nofollow noreferrer">http://servername:8080/subdirectory/index.jsp</a>) I would like to just enter (<a href="http://servername" rel="nofollow noreferrer">http://servername</a>) and have this redirect to the sub-directory on port 8080.</p>
  
  <p>I tired adding this to the server.xml without luck.  </p>
  
  <pre><code>&lt;Connector port="8080" protocol="HTTP/1.1"
  connectionTimeout="20000"
  redirectPort="8443" /&gt;
  </code></pre>
  
  <p>I added this: </p>
  
  <pre><code>&lt;Connector port="80" protocol="HTTP/1.1"
  connectionTimeout="20000"/&gt;
  </code></pre>
  
  <p>I also modified the index.jsp in the root directory to:</p>
  
  <pre><code>&lt;% response.sendRedirect("server:8080/subdir/login.jsp"); %&gt;
  </code></pre>
  
  <p>I still don't believe the site is listening on 80 and when visiting the root site "<a href="http://sitename:8080" rel="nofollow noreferrer">http://sitename:8080</a>" I it's not redirecting.  Any help would be appreciated.  I am somewhat familiar with Apache but not with Tomcat.</p>