Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your port numbers should be fine: Tomcat is listening on <code>8080</code> and Apache httpd is listening on <code>80</code>. If you want <code>http://www.myapp.com/</code> to go to your webapp, then you'll have to adjust your <code>ProxyPass</code> configuration:</p> <pre><code>ProxyPass /MyAppPath http://localhost:8080 ProxyPassReverse http://localhost:8080 </code></pre> <p>That configuration is not valid, since <code>ProxyPassReverse</code> requires two arguments. I think you want something like this:</p> <pre><code>ProxyPass / http://localhost:8080 ProxyPassReverse / http://localhost:8080 </code></pre> <p>If you do the above, then everything will be proxied-over to Tomcat. (At this stage its worth asking yourself why you are bothering with Apache httpd <em>at all</em>, since everything is being proxied). You'll also want to set <code>proxyPort</code> to 80 in your <code>&lt;Connector&gt;</code> in <code>server.xml</code>.</p> <p>If you want <code>/index.html</code> to work, and not show you the Tomcat "success" page that comes with it, then you need to re-name your webapp from <code>MyAppPath</code> to <code>ROOT</code> (case matters: it must be upper-case). Just re-name your webapp's directory to <code>ROOT</code> or your WAR file to <code>ROOT.war</code> and you should be good to go.</p> <p>If you just want to use port 80 and don't need Apache httpd for anything else, then simply change Tomcat's <code>server.xml</code> so that your <code>&lt;Connector&gt;</code> for port 8080 is instead using port 80, and remove Apache httpd from the mix altogether.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload