Discussion Locked

Domain naming

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
To access servlet in a localmachine i have to type the url as http:\\ip address:port no\servletdir\servlet name.rather specifing the above thing i have to give a domain name for a servlet which will ask for a user authentication.

1 reply

by jay eckles

It pretty much depends on what web server you're using. Most will allow you to configure the server such that a specific file in the web directory will be the default document, and that's what you want to do. Configure the server so that servletdir\servlet name is the default document. You'll have to register a domain name for that IP address to have a domain name, and if the servlet container or web server is running on a port number other than 80, then the port number is simply going to have to be part of the URL.

For more information, consult your web server documentation.

This discussion is closed to new replies.