WebSphere Application Server - Serving Static Files with WAS 6.1

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > August 2006 > Serving Static Files with WAS 6.1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Serving Static Files with WAS 6.1

2006-08-25, 7:38 am

Greetings from Kolkata India.

How do I configure WAS 6.1 to serve static files?
The files are under the WAR directory. They are
to be accessed using a URI such as

"http://ip:port/Context_Name/Folder_name/File_Name.extension"

Is it possible to keep the folder outside the WAS (say on a different
drive)?


Regards,

Diptendu
Ken Hygh

2006-08-25, 1:31 pm

diptendu@vsnl.com wrote:
> Greetings from Kolkata India.
>
> How do I configure WAS 6.1 to serve static files?
> The files are under the WAR directory. They are
> to be accessed using a URI such as


It's a configuration in the .war file. in /WEB-INF/ibm-web-ext.xmi, set
fileServingEnabled="true"

>
> "http://ip:port/Context_Name/Folder_name/File_Name.extension"
>
> Is it possible to keep the folder outside the WAS (say on a different
> drive)?


J2EE specifies that static content is within the WAR. Most clients I've
dealt with have their HTTP server handle static content, and WAS only
serve dynamic content.

>
>
> Regards,
>
> Diptendu

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com