I am running Apache 1.3 in front of JBoss 4.0.0. One talking to the other through AJP13.
Apache deserves the static files as js, css, html or images files, JBoss deserves the dynamic content and the static content that need security checks.
I deploy an ear that contains two war files at least. Each of the war is deployed in a specific context but both of them are deployed on the same virtual host.
Are there some best practices to locate the static files? Should they be located in a sub folder of the context of the war they are related to? Should they be located in a completly different path?... Are there any constraints that prevent some practices (ex. should a jsf only refer an image located in the same context path it is?)?