Reputation: 2003
I want to access specific images of the application server image directory through the IBM Websphere application server port 9080.
Ex: Let's assume my base image directory is "C:/myApplication/images" and it contains an image called "abc.png". So, I want to access that image from the below URL.
http://localhost:9080/my-images/abc.png
In the Apache Tomcat we can configure it in /conf/server.xml file as below.
< Context docBase="/C:/myApplication/images" path="my-images" />
But I want to know how to configure that base resource path in the Websphere Admin Console to access images through the Websphere application server port 9080 ?
Upvotes: 0
Views: 234
Reputation: 18050
It is not possible to just serve directory from WAS, this is typically done via Http Server (e.g. IHS, Apache).
To do it from WAS you need to deploy "empty" web application (descriptors are needed), and configure it correctly, e.g. with "context-root" set to "/" or whatever base path you need. You will also need to enable file serving and set extended context root.
Check these posts for hints:
Upvotes: 0