1 Reply Latest reply on Jun 24, 2008 12:27 AM by Little Prince

    Serving Static Content (ROOT.war, context root, virtual host

    EC Admin Newbie

      I folks,

      I use jboss 4.0.5GA and seam 1.2.1.GA.

      I would like to serve static content in ROOT.war (images, javascript libraries... etc) for my app. Howerver, it is not reachable when my context root is / When I change the context root to myapp it's fine, I can load files in ROOT.war.

      But now, my application is available at http://localhost:8080/myapp (before it was http://localhost:8080 so I get many path and links)

      I tried to create a virtual host to solve this problem. However, I can't figure out how to get http://myapp.mydomain.com mapping http://localhost:8080/myapp. My application is now available at http://myapp.mydomain.com/myapp !

      Here is my configuration :






      <Host name="myapp"
       <!-- Aliases -->
       <!-- Set up loggin -->
       <Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="myapp-" suffix=".log" pattern="common"
       <DefaultContext cookies="true" crossContext="true" override="true"/>

      Could you help me please ?

      Thank you !