title: Java web application hosting
body: <p>I hosted my application into Tomcat server and configured server.xml so that i can access my web application by directly accessing the website name eg:www.example.com but it works only when it is followed by my port number for eg: www.example.com:8080, I am using godaddy for VPS.</p>
  
  <p>This is the configuration i have used</p>
  
  <pre><code>  &lt;Host name="example.com" appBase="webapps" unpackWARs="true" autoDeploy="true"&gt;
    &lt;Alias&gt;www.example.com&lt;/Alias&gt;
    &lt;Context path="" docBase="Prototype" debug="0" privileged="true" /&gt;
    &lt;Valve className="org.apache.catalina.valves.AccessLogValve"
           directory="logs"   prefix="localhost_access_log." suffix=".txt"
           pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" resolveHosts="false"/&gt;&lt;/host&gt; 
  </code></pre>