[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Mapping static files using WebSphere App Server

Posted on 2010-11-30
7
Medium Priority
?
924 Views
Last Modified: 2013-12-10
Hi,

Is there any way where I can use WebSphere Application server as webserver like in Weblogic.

I have few aliases which points to different directories like below:
Alias /ab_image/ "/opt/Resource/images/"

the above way i map it in IHS and it works fine. but I want to know without the IHS how I will be able to achieve the same. Like in weblogic I can do it directly without any webserver.
0
Comment
Question by:Ramakanta Sahoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 34242889
You can do it, but don't!

The "HTTP" server that exists in the WebSphere Application Server product is a thin implementation of an HTTP server.  It is not intended to be used as a front end HTTP server.

Doing so would expose your Application Server to the Wild Wild West (aka World Wide Web).

Your Application Server should be behind (at least) 2 firewalls, and your web server (i.e., HTTP server) should be in the demilitarized zone (DMZ) behind (at least) 1 firewall, and with (at least) 1 firewall between it, and the Application Server.

The IBM HTTP Server (IHS) and the websphere plugin work together to provide a great deal of function that does not exist in the WebSphere Application Server (thin) HTTP layer.
0
 
LVL 4

Author Comment

by:Ramakanta Sahoo
ID: 34243537
I not that bothered of having security concerns.
As this is my local development WAS instance  i just want to know the configurations to make it work. I mean my aliases will work.
Alias /ab_image/ "/opt/Resource/images/"

If anything can be done to make it available then it will be great help for me.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34243684
Ah, ok, in that case, let me look for something to help you out.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 4

Author Comment

by:Ramakanta Sahoo
ID: 34255113
Any possible solutions??!!
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 2000 total points
ID: 34260533
It looks like your best bet is to use the extendedDocumentRoot custom property, as documented here:

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/cweb_flserv.html

This lets you define a directory outside of the WAR file from which content may be served.
0
 
LVL 4

Author Comment

by:Ramakanta Sahoo
ID: 34262578
So where shall i put this custom property and how.

For my instance I need alia like below

Alias /ab_image/ "/opt/Resource/images/"

so when I access http://WAS_HOST_NAME:9080/ab_image/logo.gif

it should go to the images directory and show the logo.

btw thanks a lot for the pointer.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34543526
Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question