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 DNS related problem and Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "DNS related problem and Tomcat" Watch "DNS related problem and Tomcat" New topic
Author

DNS related problem and Tomcat

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi guys, since I'm the developer and admin(the most overworked guy in our country , actually) in our company. This was really buggling my mind...

We have 2 static IP addresses, I only need to use one. Let's take 200.100.6.1 as an example.

We have 2 domain names which will be using separate applications in Tomcat.

I have 2 contexts declared in Tomcat, first application will be named App1 and second will be named, App2. Each are accessed through localhost like the following as shown respectively...


http://localhost:8080/App1
http://localhost:8080/App2


The two domain names, www.mysite1.com and www.mysite2.com will have to point on each of those applications.


http://www.mysite1.com -> http://200.100.6.1:8080/App1
http://www.mysite2.com -> http://200.100.6.1:8080/App2


I chose 8080 since we will also be having apache web server running. So I'm a little worried setting up the IPTables (though I failed at doing this) to forward requests from port 80 to 8080...

I'm really not knowledgeable about all the web hosting or networking related stuff. I do have the basics though... Please help me how to do this, this is like setting up our own hosting provider... Whatever... Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DNS related problem and Tomcat