Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is my current server.xml file. I would like to access my application using without port number 8080. But in the below changes nothing is loaded when i try using this URL :

<?xml version='1.0' encoding='utf-8'?>   
<Server port="8005" shutdown="SHUTDOWN">   
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />   
  <Listener className="org.apache.catalina.core.JasperListener" />   
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />   
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />   
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />   
    <Resource name="UserDatabase" auth="Container"  
              description="User database that can be updated and saved"  
              pathname="conf/tomcat-users.xml" />   
  <Service name="Catalina">   
    <Connector port="80" protocol="HTTP/1.1"    
               redirectPort="8443" />   
    <Engine name="Catalina" defaultHost="localhost">   
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"  
    <Host name="" appBase="webapps/myapps"  
          unpackWARs="true" autoDeploy="true"  
          xmlValidation="false" xmlNamespaceAware="false">   
         <Context path="" docBase="."/>   


Could you please help on this?.

Kind Regards S.Saravanan

share|improve this question

You need to find the following part of server.xml file and change it to look like:

<Connector port="80" protocol="HTTP/1.1"
           redirectPort="8443" />

Then, you should restart your tomcat.

share|improve this answer
This only did not work for me – Diyoda Sep 18 '15 at 2:48

If you don't want to run tomcat as root, you can translate the port with iptables like:

/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
/sbin/chkconfig iptables on
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.