File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes letting the world access my site Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "letting the world access my site" Watch "letting the world access my site" New topic
Author

letting the world access my site

Thomas Houseman
Ranch Hand

Joined: Jul 30, 2009
Posts: 31
Hi guys ,
I have a site on my server .
You can acces to my site using the url : www.myurl.com/myApp (just for the example).

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 !
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48839

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

How are these requests being generated? If you are putting links around the web, they should contain the proper URL including the context path.

If you are only hosting one web app, you could make it the root web app with a blank context path, but if your server will host more than one app, you are going to have to get used to URLs containing context paths.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Thomas Houseman
Ranch Hand

Joined: Jul 30, 2009
Posts: 31
Bear Bibeault wrote:
Thomas Houseman wrote:As I mentioned, my domain is www.myurl.com and the requests are comming to that domain and not to www.myurl.com/myApp.

How are these requests being generated? If you are putting links around the web, they should contain the proper URL including the context path.

If you are only hosting one web app, you could make it the root web app with a blank context path, but if your server will host more than one app, you are going to have to get used to URLs containing context p

aths.


Thanks for answer.
Is it possible to make the root web app with a blank context path ? I tried that and it didn't worked.
Are you sure ?
 
 
subject: letting the world access my site
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com