Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
whongwei
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic