• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL configuring for a web application  RSS feed

 
Karthikean Konangi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to use http://emp.knrorg.com to access my web application.
Now i am able to access using http://emp.knrorg.com:8080/empapp/Index.jsp.

How can i achieve this???

Thanks in Advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use port 80 (instead of 8080), then you don't need to mention the port in the URL, because 80 is the default port for HTTP. How to do that depends on the server you're using.

The same goes for accessing a particular web app under the root URL (different servers do it differently). Which server are you using?
 
Karthikean Konangi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response.
I am using Tomcat5.5.
I have only one applications running in this server.

Please advise.
Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Tomcat you can move the web app into the "webapps/ROOT" directory.

The port is set in the "conf/server.xml" file. Search for the Connector element.
[ March 28, 2008: Message edited by: Ulf Dittmer ]
 
Karthikean Konangi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am able to set the port 80. its working fine.
webapps/ROOT/WEB-INF/web.xml changed as follows:

<url-pattern>/EmpApp/Index.jsp</url-pattern>

now http://emp.knrorg.com/ displaying tomcat home page only.

how can i set it to display my application by default?

Please advice.
Thnaks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
With Tomcat you can move the web app into the "webapps/ROOT" directory.


Slight correction.
You want to replace webapps/ROOT with your app.
Rename your app to 'ROOT'
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!