You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Santos Jha <sa...@adelphia.net> on 2003/02/24 01:40:41 UTC

Problem with Tomcat & Apache running at different IPs

Hi All,

I am afraid that I am posting this message in this newsgroup . But I am 
pretty sure I will get some answer.

 After successfully configuring mod_jk2 to enable communication in 
between Apache and tomcat, I have couple of questions which has been 
unanswered. I will appreciate any answer:

1. With Ajp13 is it necessary to run tomcat & apache on same IP? Here is 
the scenario:
For me Apache is running of real IP(192.168.0.200) and tomcat is 
listening on localhost at port 8009.
If I goto
http://192.168.0.200:80, I can see the  output from Apache. but If I type
http://192.168.0.200:80/examples I get HTTP 400
However,
If I goto
http://localhost/examples i can see the all outputs.
I think if I make changes in server.xml and workers.properties(make same 
IP), I should be able to get the output even on 192.168.0.200. I have 
not tried though.

2. What is the use of mod_jk2.conf. The default file that comes with 
tomcat has all the lines commented. If I get any line uncomented I get 
following error:
SEVERE: can't create apr. ( Is this apr related to WARP protocol?)
& java could not find some logging class.?
I even tried to make changes in catalina.sh to alter CLASSPATH but no avail

After reading the documentation, it seems mod_jk2.conf can be 
automatically generated. In case of mod_jk there are certain parameter 
that kept in server.xml will generate in file, should be follow same 
direction/

3.It seems to me if I want to use Unix domain socket ( which should be 
faster), all I need to do is to uncommnent releted lines in 
mod_jk2.properties. But for me tomcat never created any socket file ? 
please let me know if anyone knows the trick.

Thanks you.
Santos


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org