Hi, ALL. I have connect tomcat and apache by mod_jk2 at the same machine(solaris). I can see the application page with http://localhost:4080/ or http://localhost/ by apache.
Now, i need to move tomcat to another machine in LAN. So i change the workers2.properties setting like under ---original(tomcat and apache at same machine)--- # Example socket channel, explicitly set port and host. [channel.socket:127.0.0.1:4009] tomcatId=127.0.0.1:4009 port=4009 host=127.0.0.1 # define the worker [ajp13:127.0.0.1:4009] channel=channel.socket:127.0.0.1:4009 [uri:www.154test.com/*] worker=ajp13:127.0.0.1:4009 ---modify(tomcat and apache at separate machine)--- # Example socket channel, explicitly set port and host. [channel.socket:192.168.1.153:4009] tomcatId=192.168.1.153:4009 port=4009 host=192.168.1.153 # define the worker [ajp13:192.168.1.153:4009] channel=channel.socket:192.168.1.153:4009 [uri:www.153test.com/*] worker=ajp13:192.168.1.153:4009 But it didnt work. I didnt see any error in log. under is part of log [Wed Jan 06 23:19:01 2010] [notice] mod_jk2 child 3 initialized [Wed Jan 06 23:19:01 2010] [notice] jk2_init() Found child 4692 in scoreboard sl ot 4 [Wed Jan 06 23:19:01 2010] [notice] channelApr.resolve(): create AF_NET 192.168 .1.153 4009 [Wed Jan 06 23:19:01 2010] [notice] jk2_init() Setting scoreboard slot 0 for chi ld 4693 [Wed Jan 06 23:19:01 2010] [notice] channelApr.resolve(): create AF_NET 192.168 .1.153 4009 [Wed Jan 06 23:19:01 2010] [notice] workerEnv.init() ok /usr/local/apache/conf/w orkers2.properties [Wed Jan 06 23:19:01 2010] [notice] mod_jk2 child 4 initialized [Wed Jan 06 23:19:01 2010] [notice] workerEnv.init() ok /usr/local/apache/conf/w orkers2.properties [Wed Jan 06 23:19:01 2010] [notice] mod_jk2 child 4693 initialized [Wed Jan 06 23:19:01 2010] [notice] jk2_init() Found child 4694 in scoreboard sl ot 6 [Wed Jan 06 23:19:01 2010] [notice] channelApr.resolve(): create AF_NET 192.168 .1.153 4009 [Wed Jan 06 23:19:01 2010] [notice] workerEnv.init() ok /usr/local/apache/conf/w orkers2.properties [Wed Jan 06 23:19:01 2010] [notice] mod_jk2 child 6 initialized It seems apache catch 192.168.1.153 4009 from the line channelApr.resolve(): create AF_NET 192.168.1.153 4009 I really cant see the page with http://192.168.1.153/ But http://192.168.1.153:4080/ is work. Anyone can help me? Thanks. -- View this message in context: http://old.nabble.com/connect-tomcat-and-apache-by-mod_jk2-tp27027779p27027779.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org