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
205 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iis reverse proxy virtual directory 8 175
Coldfusion update database with CFLOOP 5 64
Why is my Splunk Web URL not working? 2 66
Soundcloud.com 4 25
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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