Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, couple of issues with your configuration:</p> <ul> <li>Based on your question, I assume that the tomcat and apache reside on the same server. Therefore it is best to have <code>worker.apacheworker.host=localhost</code>. I think it does not reach the tomcat because of that</li> <li>Unless you use the apache to load balance several tomcat servers, drop the lbfactor.</li> <li>Notice that by default the URI for your war is the name of the war file, so that myapp.war will be accessed by calling <a href="http://mydomain.com/myapp" rel="nofollow">http://mydomain.com/myapp</a>, not <a href="http://mydomain.com/webservices/myapp" rel="nofollow">http://mydomain.com/webservices/myapp</a>. The <code>/webservices/</code> mapping is relevant only if you have a webservices.war file in the tomcat's webapps directory. The mapping should also be <code>/webservices/*</code></li> <li><p>for security reasons you should block access to the WEB-INF directory. Add the following to the mod_jk.conf:</p> <p><code>&amp;lt;Location "/myapp/WEB-INF/"&gt;</code></p> <p><code>AllowOverride None</code></p> <p><code>deny from all</code></p> <p><code>&amp;lt;/Location&gt;</code></p></li> <li><p>There is no real need to make this mapping, you can let the tomcat to serve the static files as well. In case you want to save the load, it is better to use a content delivery network (CDN) anyway. Amazon CloudFront is a cheap alternative for that.</p></li> </ul> <p>I would also consider replacing the mod_jk with either mod_proxy or mod_proxy_ajp. I have used the first one for several applications with success. The configuration is much simpler then:</p> <pre><code>ProxyPass /myapp http://localhost:8080/myapp ProxyPassReverse /myapp http://localhost:8080/myapp </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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