Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping WAS 4.0 from serving up html pages

Status
Not open for further replies.

Einstein47

Programmer
Nov 29, 2001
737
US
I have an odd situation where WAS 4.02 is wanting to serve up ALL files from the directory /site . However this directory contains .html files as well as .jsp .

Is there any way to have the .html files served up by the HTTP Server and not WAS? Einstein47
("If computers ever get too powerful, we can organize them into a committee - that will do them in." - Unknown)
 
I didn't get the solution that I initially looked for, but I did come up with something that works. I had to modify the security so that the .HTML files were available to the public. They are still buried in the EAR file, but at least now they are displayed to the visitor when they fail to login. Einstein47
("If computers ever get too powerful, we can organize them into a committee - that will do them in." - Unknown)
 
Hi,

Extract from V4.0 Handbook:

By default, WebSphere serves all the artifacts of an application, should they be
static or dynamic. If your application uses a lot of static content, you may want to
configure WebSphere so that the static content is served by the Web server
instead. This comes at the expense of packaging the static contents of the
application separately, and deploying them manually (there is no standard
process to do this).
To do this, you must disable the File Serving Servlet. This can be done from the
AAT, from the IBM Extensions tab of the Web Module Properties window, by
un-checking the File serving enabled option.
You must then reinstall the application, and regenerate the plug-in configuration.
To check that this has worked, you can look at the plugin-cfg.xml file, where you
should see something similar to this, as opposed to a single rule that redirects all
/webbank/* requests to WebSphere:
<UriGroup Name=&quot;webbankApplication/webbankWeb_URIs&quot;>
<Uri Name=&quot;/webbank/TransferServlet&quot;/>
<Uri Name=&quot;/webbank/*.jsp&quot;/>
<Uri Name=&quot;/webbank/*.jsv&quot;/>
<Uri Name=&quot;/webbank/*.jsw&quot;/>
<Uri Name=&quot;/webbank/j_security_check&quot;/>
</UriGroup>
You should also configure the Web Server to recognize the /webbank URI. This
can easily be done in Apache/IHS using an Alias directive, like this:

Hope this helps.

Eddie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top