0 Replies Latest reply on Aug 19, 2004 3:02 PM by jjm

    Serve static files with Apache from a deployed .WAR file?

      As all of these types of posts start, I'm new to JBoss and need some help.

      I have setup Apache 2.0.50 and JBoss 3.2.5 using mod_jk2.

      My application is defined to operate in the root context (http://servername/) by creating a WEB-INF/jboss-web.xml

      I am serving static files (with apache) from a directory off the file system, by setting the DirectoryRoot variable in httpd.conf. JBoss is working off a .WAR built from this directory.

      Is there any way to reference the unarchived files from Apache? Currently, they are going to c:\jboss-3.2.5\server\default\tmp\deploy\tmp17751xxx.war. I believe that the number is sequential so I can't depend on it.

      I guess what I'm asking is how to configure JBoss to deploy wars to a known location? I'd rather not have to manually unarchive the .WAR file into a deploy/filename.war/ directory (which I believe I read about in the FAQ?)

      Any help would be greatly appreciated.

      Thanks,
      Josh