title: Simple proxy Apache - Tomcat
body: <p>My intent is very simple, I would like to type example.com and be redirect to example.com:8080/myapp</p>
  
  <p>example.com:8080/myapp is a java/tomcat app.</p>
  
  <pre><code>   &lt;VirtualHost *:80&gt;
      ServerName example.com
  
      ProxyRequests Off
      &lt;Proxy *&gt;
              Order deny,allow
              Allow from all
      &lt;/Proxy&gt;
  
      ProxyPass / http://example.com:8080/myapp/
      ProxyPassReverse / http://example.com:8080/myapp/
  
      &lt;Location /&gt;
              Order deny,allow
              Allow from all
      &lt;/Location&gt;
  
      ErrorLog ${APACHE_LOG_DIR}/error.log
  
      LogLevel info
  
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
     &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And the result is when I type <a href="http://example.com" rel="nofollow">http://example.com</a> it's redirected to example.com:8080/myapp/myapp</p>
  
  <p>My file server.xml from Tomcat has the follow instruction:</p>
  
  <pre><code>  Connector port="8080" protocol="HTTP/1.1"
         connectionTimeout="20000"
         URIEncoding="UTF-8"
         proxyPort="80" proxyName="example.com"
  </code></pre>
  
  <p>What I am missing?</p>