This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
To permit your website to be findable by name, you have to get an entry in the "Internet phone book", which is Domain Name Services. That means that you have to purchase rights to the domain name "mywouldbesite.com" from one of the domain name registrars such as Verisign or GoDaddy. You can also buy the name though your ISP in many cases. That will give you the rights for "mywouldbesite.com" for a specified number of years, after which you'd have to renew the name, since it's really only rented, rather than purchased. And, of course, you have to have a domain name that no one else holds the registration on.
Once you've done that, you have to get the actual host IP address bound to a host name in that domain. Typically, that hostname would be "www" for the web host, but it doesn't have to be. This binding is done in the nameserver(s) that are registered with your domain name. Often your ISP will provide that service, although there may be a small fee.
Next, to get the port number off the URL, you'll have to do some work yourself. When a user enters a URL that doesn't have an explicit port number on it, and the protocol part of that URL is "http:", the client will assume port 80. So you'll need to make your webapp respond on port 80. You can do that by either changing the ports used by Tomcat (from 8080 to 80) or by proxying through another server, such as apache httpd.
Finally, to get the web application context name out of the URL, you'll either need to install it under the root context ("/") or, if you're using a proxying system, use the proxy rules to direct from the raw URL to the tomcat context.
I prefer the proxying approach, since Tomcat can only have one root context, but Apache can easily make multiple webapps each look they're at a root level. Plus it allows me to add non-J2EE resources to the overall webserver picture if I like.
Customer surveys are for companies who didn't pay proper attention to begin with.
I have got the domain registered and made the payments. I can use it.
I am using port 7001 to access this application and it works well if I use it using IP address.
I am struck after this as I don't know what configuration shall I keep in server.xml. Can someone help me with deployment example which will
map www.<mywouldbesite>.com to that ip address and its port.
If any other info is required, please let me know.