Thanks for your response Nick.
I tried using mod_jk, but wasn't able to get it working. I built mod_jk.so
without errors, and put it into the $APACHE_HOME/libexec folder. I created
mod_jk.conf, and workers.properties. Then I included mod_jk.conf in
httpd.conf, and Apache started up without errors:
[Thu Jan 17 14:52:22 2002] [notice] Apache/1.3.9 (Unix) mod_jk/1.1.0
configured -- resuming normal operations
I added a AJP13 connector in $TOMCAT_HOME/conf/server.xml, and Tomcat also
started up without errors.
But when I made a request through the browser, it just timed out. When I
checked the logs, there was a small stacktrace in catalina.log:
java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not
found
at org.apache.ajp.tomcat4.Ajp13Connector.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
And the mod_jk.log says:
[Thu Jan 17 15:08:55 2002] [jk_ajp13.c (403)]: Into ajp13_marshal_into_msgb
[Thu Jan 17 15:08:55 2002] [jk_ajp13.c (537)]: ajp13_marshal_into_msgb -
Done
[Thu Jan 17 15:08:55 2002] [jk_connect.c (108)]: Into jk_open_socket
[Thu Jan 17 15:08:55 2002] [jk_connect.c (115)]: jk_open_socket, try to
connect socket = 9
[Thu Jan 17 15:08:55 2002] [jk_connect.c (124)]: jk_open_socket, after
connect ret = 0
[Thu Jan 17 15:08:55 2002] [jk_connect.c (132)]: jk_open_socket, set
TCP_NODELAY to on
[Thu Jan 17 15:08:55 2002] [jk_connect.c (140)]: jk_open_socket, return, sd
= 9
[Thu Jan 17 15:08:55 2002] [jk_ajp13_worker.c (189)]: In
jk_endpoint_t::connect_to_tomcat, connected sd = 9
[Thu Jan 17 15:08:55 2002] [jk_ajp13_worker.c (206)]: sending to ajp13 #337
[Thu Jan 17 15:08:55 2002] [jk_ajp13_worker.c (645)]: send_request 2:
request body to send 0 - request body to resend 0
And there it just hangs....
Has anyone experienced this problem??
Can anyone tell me exactly how to configure server.xml for use with mod_jk
??
My system information is following:
Tomcat 4.01
Apache 1.3.9
JDK 1.2
OS: Solaris 7
Thx for your help.
-OGG
-----Original Message-----
From: Nicholas Ide [mailto:[EMAIL PROTECTED]]
Sent: 17. jan�ar 2002 14:33
To: [EMAIL PROTECTED]
Subject: Re: mod_webapp: redirects to ServerName
Oli,
My problem (encodeURL bug) is related. If *all* you care about is getting
the hostname corrected and if you're not worried about changing ports, then
I believe switching from mod_webapp to mod_jk will solve your problem.
It is fairly easy to get mod_jk working under tomcat 3.x --
and then you can copy/edit the configuration files
over to your tomcat 4.x configuration and add the connector into servlet.xml
-Nick
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Id: "Tomcat Users List" <tomcat-user.jakarta.apache.org>
>Delivered-To: mailing list [EMAIL PROTECTED]
>From: Oli Gauti Gudmundsson <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: mod_webapp: redirects to ServerName
>Date: Thu, 17 Jan 2002 13:45:23 -0000
>MIME-Version: 1.0
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Hi guys.
>I've installed Tomcat4 with Apache through mod_webapp, and it works.
>However, I have the following problem:
>
>If I point my browser to http://www.mydomain.com
><http://www.mydomain.com> , Apache redirects me to
>http://123.45.67.89/index.jsp <http://123.45.67.89/index.jsp> , where
>123.45.67.89 is the IP address of the server running the application,
>and is set as the ServerName in httpd.conf.
>
>If I change the ServerName in httpd.conf to www.mydomain.com
><http://www.mydomain.com> , then the opposite happens (that is, if I
>point the browser to 123.45.67.89 I get redirected to
>www.mydomain.com/index.jsp <http://www.mydomain.com/index.jsp> ).
>
>Now the strange thing is, that if I type the full path (with the
>"/index.jsp" at the end), then no redirection occurs.
>
>This is a problem for me because I have multiple domain names pointing
>to the IP address, and the user is always redirected to the IP address,
>which is unacceptable.
>
>Has anyone experienced this problem, or even better, solved it?
>
>Thx for your help.
>-OGG
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>