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: 50691

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
 
Threads others viewed
Running the headfirst ejb 1st chapter
Not include webapp context path
connect my site to the world
HTTP Session Creation
Running SunAppServer on AFS(Solaris)
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture