Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat

 
Rani Vish
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

I want my page to be displayed when i start tomcat as http://Mypage.com
instead of giviing http://localhost:8080/Mypage.com


Rani
 
Jean Mathew
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the <Connector port="8080"... to <Connector port="80"... of <TOMCAT_HOME>/bin/jakarta-tomcat-5.0.28/conf/server.xml

If you are using windows, edit <WINDOWS_HOME>/system32/drivers/etc/hosts file and add the followig line
127.0.0.1 MyPage.com

If you are using linux, edit /etc/hosts file

Create a MyServer.xml file in the <TOMCAT_HOME>/conf/Catalina/localhost folder with the following content

<Context path="" docBase="<path_to_your_application>" debug="0" privileged="true">
</Context>

Restart the tomcat.
 
Rani Vish
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx

I follwed the steps but it is giving the following error message ,

The host specified in your URL could not be found.
This error could have been caused by:

Bad / misspelled URL
Following an invalid link
Your network connection and/or transient conditions on the Internet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic