aspose file tools*
The moose likes Servlets and the fly likes replace ipaddr and port number in url of a webapp by name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "replace ipaddr and port number in url of a webapp by name" Watch "replace ipaddr and port number in url of a webapp by name" New topic
Author

replace ipaddr and port number in url of a webapp by name

Ratan Kumar
Ranch Hand

Joined: Jul 19, 2006
Posts: 67
Hi,

I have an application running on unix machine with me

i access it by the url

http://xxx.xxx.xxx.xxx:9080/abc

how can i replace this 'xxx.xxx.xxx.xxx:9080' by some name ...eg:test

so that i can now access it by

http://test/abc


Thanks
Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

You may replace the ip address by computer name like "http://<computername>:<portnumber>/"



SCJP 5.0, SCWCD 5, preparing for SCDJWS
Arpit Purohit
Greenhorn

Joined: Jan 09, 2007
Posts: 21
This is usually done by using an HTTP server (like Apache ).
Use Virtual Host configuration to map a web application name of your choice with your http://xxx.xxx.xxx.xxx:9080/abc.
For reference visit Apache Virtual Host Documentation

Regards,
Arpit Purohit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: replace ipaddr and port number in url of a webapp by name