| Author |
How Tomcat Works book - development question
|
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
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>
|
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
thank you, Somkiat Puisungnoen
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
hi, if i register a domain name, how to i map the domain with my IP, is it need to set something in tomcat ?
|
 |
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
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
Joined: Jan 08, 2004
Posts: 834
|
|
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
|
 |
 |
|
|
subject: How Tomcat Works book - development question
|
|
|