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 configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat configuration" Watch "Tomcat configuration" New topic
Author

Tomcat configuration

sanchit chaudhary
Greenhorn

Joined: Sep 13, 2012
Posts: 3
how can i change the host name to a userdefined name.
i am hosting a java application which i build using servlet and jsp.
i am using apache-tomcat-7.0.29 and jdk 7.
to acess my application i have to type HTTP:\\10.226.236.12:8080\\EmergencyImagePush\Firstpage.jsp.
Now what i want to do is that to acess the the same application by the name http:\\Image and it should give me the first page.
can you help.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

I wouldn't count on it. URLs use "real" slashes, not backslashes, so HTTP:\\10.226.236.12:8080\\EmergencyImagePush\Firstpage.jsp will only work on web clients that accept invalid URL syntax and compensate for it.

I get the impression that you don't understand what a URL really it (hint: it's not a filename path, and it's made of of several distinct components). It would be a good idea to learn about URLs and URIs, since the concept is central to the Internet - and not just for the World Wide Web part of it.

Having said that, a URL in the form of "http://image" (note the slashes!) only works if your hostname is "image". This is actually an incomplete URL and (again) you should expect that it won't work reliably except for web clients that compensate for its deficiencies.

So you need to learn about:

URLs and URIs
hostnames
domain names
well-known ports
domain name resolution and Domain Name Services (DNS)
Proxying and forwarding
Common client practices for resolving incomplete URLs

After that, then you'll be in a position to configure Tomcat properly.


Customer surveys are for companies who didn't pay proper attention to begin with.
sanchit chaudhary
Greenhorn

Joined: Sep 13, 2012
Posts: 3
I am hosting this application in an intranet for internal use only so i do not need a domain.
I am already hosting it from my local system and other people in the network can acess it but they have to type--
http://10.226.15.46:8080/EmergencyImagePush/FirstPage.jsp but i want the address to be http://Image or something short and hence it will be easy for the people in the network to acess it in one shot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat configuration