Solved

If I have 2 sites hosted on the same Websphere box, how do I point requests to the correct index page?

Posted on 2006-07-21
2
195 Views
Last Modified: 2010-04-20
Assume that I have 2 sites, abc.com and def.com, and they are hosted on the same Websphere 4.0 box.  The context roots will be /abc and /def, respectively.  When a person wants to view abc.com, how do I set it up so that they don't have to put the context root in the URL?  

For example, I don't want the user to have to type in 'http://www.abc.com/abc' in order to view abc.com.  

I know I could just have a slash for the context root of abc, but with multiple sites, I don't know how Websphere will differentiate.  

Thanks for any help!!
0
Comment
Question by:LDawg17
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
Comment Utility
in your WebShpere config file you should have something like:

<websphere-sa-config>
 ....
   <web-application name="yourApp" action="update">
        <document-root>/path/to/your/document/root</document-root>

You may also change it in your WebShpere's Administration console, IIRC it's named "Web Application Path" there.
0
 

Author Comment

by:LDawg17
Comment Utility
What is the name of the config file?  I would like to see the entire file to fully understand what is going on.  Thanks...
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now