Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How Tomcat Works book - development question

 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Alvin chew:
hi,Somkiat Puisungnoen , i want my server running 2 URL , one with no port like http://localhost and another one for port address which is http://localhost:8082 ..

so what i want is just add something inside <services> as you suggest ? then how about for http://localhost case ?

thank you !



add config into server.xml follow this ::

Server.xml in my tomcat 5.0.16


<Service name="Catalina">
<!-- http://localhost-->
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="80" redirectPort="8443">
</Connector>
<!-- http://localhost:8080-->
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8080" redirectPort="8443">
</Connector>
<!-- http://localhost:8082-->
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8082" redirectPort="8443">
</Connector>
<Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443">
</Connector>
<Engine defaultHost="localhost" name="Catalina">
<Host appBase="webapps" name="localhost">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
</Host>
<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
</Engine>
</Service>

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you, Somkiat Puisungnoen
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, if i register a domain name, how to i map the domain with my IP, is it need to set something in tomcat ?
 
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if someone could give a brief explanation on what Apache and TomCat are and some reasons on why someone should choose them over other products (other than being free). Thanks.

Rob
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, rob , for the question, what is tomcat, you should refer to link

and why people using tomcat is of course it is free as major factor, some other reasons like stability , easy to use ..it did a very good job considering if you only want to use tomcat for jsp and servlet processing, it running is light weight as compare with j2EE application server which consist other components that you may not need..

further points like supported and intergrated with major IDE , finally, it is extensible if you want to plugin some nice framework like struts
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic