jQuery in Action, 2nd edition
The moose likes Websphere and the fly likes connect my site to the world Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "connect my site to the world" Watch "connect my site to the world" New topic
Author

connect my site to the world

Thomas Houseman
Ranch Hand

Joined: Jul 30, 2009
Posts: 31
Hi ,
I have a site on my server (WAS).
you can acces to my site using the usl : www.myurl.com/myApp

The problem is :
As I mentioned, my domain is www.myurl.com and the requests are comming to that domain and not to www.myurl.com/myApp.

What should i do in order to receive the requests ? (my server accept to get the root-context...).

Thanks !
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4932

Have you got an http server in there? Let the http server capture the request and send it off.

Alternatively, if you're hitting WAS directly, there's a way you can configure the 'default host' to accept requests directly. When you do a default install, was has all those apps running at localhost/SnoopServlet and localhost/ExampleServlet, or whatever. That's using the default host.

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Thomas Houseman
Ranch Hand

Joined: Jul 30, 2009
Posts: 31
Cameron Wallace McKenzie wrote:Have you got an http server in there? Let the http server capture the request and send it off.

Alternatively, if you're hitting WAS directly, there's a way you can configure the 'default host' to accept requests directly. When you do a default install, was has all those apps running at localhost/SnoopServlet and localhost/ExampleServlet, or whatever. That's using the default host.

-Cameron McKenzie


Thanks,
1. can you be more specific please ? how should i configure WAS in order to let my app to accept requests directly ?

2. Regarding to http server - I can install one, but how should i configure that all the requests go directly to my app ? (what should I configure in httpd.conf ?)

Thanks again !

This message was edited 1 time. Last update was at by Thomas Houseman

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4932

For part 2, you install the Http Server, and then, install the WAS plugin, which tells the http server to send all incoming requests to the appropriate port:context root for the request.

You intall the web server, and then, on the web server, take the installation disc for WEbSphere. Then you do a full installation, BUT, when it asks which component to install, you DE-select EVERYTHING except the IBM Http Plugin. This then installs the IBM Http Plugin on the http server. That's essentially the steps.

If this is just something you're hacking around with, I'd look at configuring the 'default host' to accept port 80 requests.
 
 
subject: connect my site to the world
 
MyEclipse, The Clear Choice