File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat" Watch "Tomcat" New topic
Author

Tomcat

Rani Vish
Greenhorn

Joined: Feb 03, 2006
Posts: 22
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

Joined: Feb 07, 2005
Posts: 4
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.


Jean Mathew<br />Kochi, Kerala, India
Rani Vish
Greenhorn

Joined: Feb 03, 2006
Posts: 22
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat