File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How do I let my IIS and Tomcat using the same port? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How do I let my IIS and Tomcat using the same port?" Watch "How do I let my IIS and Tomcat using the same port?" New topic
Author

How do I let my IIS and Tomcat using the same port?

whongwei
Greenhorn

Joined: Dec 12, 2000
Posts: 7
Hi, I want to know how the IIS and Tomcat run together, and using the same port. I have try this URL instruction,
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html
I don't know where I set wrongly, It does not work. Can anyone help me on this.
Thanks
Hongwei
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
The only way to run two servers on the same machine and listening to the same port, is to have them responding to different virtual hosts.
Virtual hosts can either be "physical", where the machine occupies two or more IP addresses and each server is bound to a separate IP address, or "name-based" where only one IP address is used, but the local DNS maps two or more names to the machine and each server is bound to a different name.
All of this is quite complicated, and the way most people run multiple servers on one machine is to give them different ports. The default port for HTTP is 80, but many "alternative" webservers, such as Tomcat, come set up to work with another port such as 8080, 8000 or whatever. Are you sure this is not a possibility for your application?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Please note that The Java Ranch has a naming policy, described here and "whongwei" is not a valid name. Please choose one which meets the requirements soon, as this username will soon be switched off and you will no longer be able to post to Java Ranch using it.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I let my IIS and Tomcat using the same port?