Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
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
 
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.
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!