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
209 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
ID: 17159217
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
ID: 17166932
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 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