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
218 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
[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
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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

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…
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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