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 defining a domain on local computer by using tomcat .is t possible ?, please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "defining a domain on local computer by using tomcat .is t possible ?, please" Watch "defining a domain on local computer by using tomcat .is t possible ?, please" New topic
Author

defining a domain on local computer by using tomcat .is t possible ?, please

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Thank you for reading
I need a way to make www.abcdefg.com on my local computer and test that what is going wrong.

Main Question :

Is it possible for me to have A fully qualified Domain Name on my local computer
I should use Tomcat as Servlet hosting.
So i want a solution to make a domain on my computer and when i type : www.abcdefg.com in
the browser it opens the local site which have made myself.
I have Windows XP pro.

pleas some one help me about this
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by raminaa niilian:
Thank you for reading
I need a way to make www.abcdefg.com on my local computer and test that what is going wrong.

Main Question :

Is it possible for me to have A fully qualified Domain Name on my local computer
I should use Tomcat as Servlet hosting.
So i want a solution to make a domain on my computer and when i type : www.abcdefg.com in
the browser it opens the local site which have made myself.
I have Windows XP pro.

pleas some one help me about this



You can add www.abcdefg.com to your hosts file and have it point to 127.0.0.1, which is your local machine.
sts" exists in different places depending on your version of Windows.

Once you've done that, you can create a new host in your TOMCAT/conf/server.xml file to only listen for requests to www.abcdefg.com.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
Thanks for reply , but where is the host file ?
Im not pro and i have windows XP PRO - SP2
is it possible for win xp to do that ?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do a file search for a file named "hosts" -- no file extension.
It's usually under c:\WINDOWS\etc\drivers... or something similar.
Let the search feature find it for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: defining a domain on local computer by using tomcat .is t possible ?, please
 
Similar Threads
JSP page not coming
Parked domains and JSP
Apache-Tomcat Integration Problem: only works locally.
Set tomcat for static IP.
where to map the domain name in Tomcat?