You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Reinhard Moosauer <rm...@moosauer.de> on 2003/03/12 16:43:57 UTC
JK2 not working with virtual hosts
Hello List,
I tried the binary "mod_jk2-1.3-eapi.so" from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.0/
with apache 1.3 and virtual hosts.
In short: absolutely no luck.
I read all available docs (which seen quite current) and enabled debugging in
workers2.properties, but I diddn't get the uri-maps right.
He didn't decode the host-part of the uri:-entries.
Example:
[uri:www.myhost.com/servlet/*]
was decoded to:
uri=/servlet/*
host=www.myhost.com/servlet/*
Weird! Even when I omit the host-part it doesn't find the map when I start a
request.
I tried several combinations:
[uri:www.myhost.com]
[uri:www.myhost.com:80/servlet/*]
[uri:www.myhost.com:/servlet/*]
[uri:/servlet/*]
I read the source (from tomcat-4.1.18), and I found that the version must be
different (wrong source line numbers)
But the source seems to be ok. Did I use a broken version?
Where can I find more current binary versions?
Building it seems painful, when I look to the configure script.
Any hint is greatly appreciated.
regards,
Reinhard
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: JK2 not working with virtual hosts
Posted by Reinhard Moosauer <rm...@moosauer.de>.
Hello,
Am Mittwoch, 12. März 2003 19:56 schrieb Costin Manolache:
> Reinhard Moosauer wrote:
> > Additional information:
> > Without virtual host I got the request mapped. But no answer but
> > a "segmentation fault .. child .. " in apache's error_log
>
> Can you send a stack trace ?
>
see below a ltrace on the apache thread. Don't know how to get a stack trace.
> I'm checking the hosts problem.
>
Now I am using the 2.0.1-binary from jakarta's server. The logs say that
virtual hosts are decoded now properly.
2.0.0 seems completely broken with virtual hosts.
How to go on?
many, many thanks for your help.
regards,
Reinhard
> Costin
>
> > thanks,
> >
> > Am Mittwoch, 12. März 2003 16:43 schrieb Reinhard Moosauer:
> >> Hello List,
> >>
> >> I tried the binary "mod_jk2-1.3-eapi.so" from
>
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
>
> >>.0/ with apache 1.3 and virtual hosts.
> >>
> >> In short: absolutely no luck.
> >> I read all available docs (which seen quite current) and enabled
> >> debugging in workers2.properties, but I diddn't get the uri-maps right.
> >> He didn't decode the host-part of the uri:-entries.
> >>
> >> Example:
> >> [uri:www.myhost.com/servlet/*]
> >> was decoded to:
> >> uri=/servlet/*
> >> host=www.myhost.com/servlet/*
> >>
> >> Weird! Even when I omit the host-part it doesn't find the map when I
> >> start a request.
> >> I tried several combinations:
> >> [uri:www.myhost.com]
> >> [uri:www.myhost.com:80/servlet/*]
> >> [uri:www.myhost.com:/servlet/*]
> >> [uri:/servlet/*]
> >>
> >> I read the source (from tomcat-4.1.18), and I found that the version
> >> must be different (wrong source line numbers)
> >> But the source seems to be ok. Did I use a broken version?
> >> Where can I find more current binary versions?
> >> Building it seems painful, when I look to the configure script.
> >>
> >> Any hint is greatly appreciated.
> >>
> >> regards,
> >>
> >> Reinhard
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
# ltrace -f -p 23462
...
...
strlen("GET /jkstatus HTTP/1.1") = 22
memcpy(0x080f6ea8, "GET /jkstatus HTTP/1.1", 23) = 0x080f6ea8
strlen("/jkstatus") = 9
memcpy(0x080f6ed8, "/jkstatus", 10) = 0x080f6ed8
memcpy(0x080f6ee8, "/jkstatus", 9) = 0x080f6ee8
strlen("HTTP/1.1") = 8
memcpy(0x080f6ef8, "HTTP/1.1", 9) = 0x080f6ef8
sscanf(0x080f6ef8, 0x0807da24, 0xbfffd068, 0xbfffd064, 0xbfffd060) = 2
memset(0x080f6f20, '\000', 400) = 0x080f6f20
memcpy(0x080f70b0, "Connection: Keep-Alive", 23) = 0x080f70b0
strchr("Connection: Keep-Alive", ':') = ": Keep-Alive"
memcpy(0x080f70c8, "User-Agent: Mozilla/5.0 (compati"..., 59) = 0x080f70c8
strchr("User-Agent: Mozilla/5.0 (compati"..., ':') = ": Mozilla/5.0
(compatible; Konqu"...
memcpy(0x080f7108, "Pragma: no-cache", 17) = 0x080f7108
strchr("Pragma: no-cache", ':') = ": no-cache"
memcpy(0x080f7120, "Cache-control: no-cache", 24) = 0x080f7120
strchr("Cache-control: no-cache", ':') = ": no-cache"
memcpy(0x080f7138, "Accept: text/*, image/jpeg, imag"..., 52) = 0x080f7138
strchr("Accept: text/*, image/jpeg, imag"..., ':') = ": text/*, image/jpeg,
image/png,"...
memcpy(0x080f7170, "Accept-Encoding: x-gzip, x-defla"..., 60) = 0x080f7170
strchr("Accept-Encoding: x-gzip, x-defla"..., ':') = ": x-gzip, x-deflate,
gzip, defla"...
memcpy(0x080f71b0, "Accept-Charset: iso-8859-15, utf"..., 50) = 0x080f71b0
strchr("Accept-Charset: iso-8859-15, utf"..., ':') = ": iso-8859-15,
utf-8;q=0.5, *;q="...
memcpy(0x080f71e8, "Accept-Language: de, en", 24) = 0x080f71e8
strchr("Accept-Language: de, en", ':') = ": de, en"
memcpy(0x080f7200, "Host: m1b.home.priv", 20) = 0x080f7200
strchr("Host: m1b.home.priv", ':') = ": m1b.home.priv"
qsort(0xbfffb820, 9, 12, 0x08051a30 <unfinished ...>
strcasecmp("Connection", "User-Agent") = -18
strcasecmp("Pragma", "Cache-control") = 13
strcasecmp("Connection", "Cache-control") = 14
strcasecmp("Connection", "Pragma") = -13
strcasecmp("User-Agent", "Pragma") = 5
strcasecmp("Accept", "Accept-Encoding") = -45
strcasecmp("Accept-Language", "Host") = -7
strcasecmp("Accept-Charset", "Accept-Language") = -9
strcasecmp("Accept", "Accept-Charset") = -45
strcasecmp("Accept-Encoding", "Accept-Charset") = 2
strcasecmp("Accept-Encoding", "Accept-Language") = -7
strcasecmp("Cache-control", "Accept") = 2
strcasecmp("Cache-control", "Accept-Charset") = 2
strcasecmp("Cache-control", "Accept-Encoding") = 2
strcasecmp("Cache-control", "Accept-Language") = 2
strcasecmp("Cache-control", "Host") = -5
strcasecmp("Connection", "Host") = -5
strcasecmp("Pragma", "Host") = 8
<... qsort resumed> ) = <void>
strcasecmp("Accept", "Accept-Charset") = -45
strcasecmp("Accept-Charset", "Accept-Encoding") = -2
strcasecmp("Accept-Encoding", "Accept-Language") = -7
strcasecmp("Accept-Language", "Cache-control") = -2
strcasecmp("Cache-control", "Connection") = -14
strcasecmp("Connection", "Host") = -5
strcasecmp("Host", "Pragma") = -8
strcasecmp("Pragma", "User-Agent") = -5
strcasecmp("Accept", "Host") = -7
strcasecmp("Accept-Charset", "Host") = -7
strcasecmp("Accept-Encoding", "Host") = -7
strcasecmp("Accept-Language", "Host") = -7
strcasecmp("Cache-control", "Host") = -5
strcasecmp("Connection", "Host") = -5
strcasecmp("Host", "Host") = 0
strlen("m1b.home.priv") = 13
strcasecmp("m1b.home.priv", "m1b.home.priv") = 0
strcasecmp("Accept", "Host") = -7
strcasecmp("Accept-Charset", "Host") = -7
strcasecmp("Accept-Encoding", "Host") = -7
strcasecmp("Accept-Language", "Host") = -7
strcasecmp("Cache-control", "Host") = -5
strcasecmp("Connection", "Host") = -5
strcasecmp("Host", "Host") = 0
strlen("setenvif-phase-flag") = 19
memcpy(0x080f7228, "setenvif-phase-flag", 20) = 0x080f7228
strlen("post-read done") = 14
memcpy(0x080f7240, "post-read done", 15) = 0x080f7240
strcasecmp("Accept", "User-Agent") = -20
strcasecmp("Accept-Charset", "User-Agent") = -20
strcasecmp("Accept-Encoding", "User-Agent") = -20
strcasecmp("Accept-Language", "User-Agent") = -20
strcasecmp("Cache-control", "User-Agent") = -18
strcasecmp("Connection", "User-Agent") = -18
strcasecmp("Host", "User-Agent") = -13
strcasecmp("Pragma", "User-Agent") = -5
strcasecmp("User-Agent", "User-Agent") = 0
regexec(0x080b8d78, 0x080f70d4, 0, 0, 0) = 1
regexec(0x080b8e00, 0x080f70d4, 0, 0, 0) = 1
regexec(0x080b8f00, 0x080f70d4, 0, 0, 0) = 1
regexec(0x080b8f98, 0x080f70d4, 0, 0, 0) = 1
regexec(0x080b9030, 0x080f70d4, 0, 0, 0) = 1
strcasecmp("Accept", "Expect") = -4
strcasecmp("Accept-Charset", "Expect") = -4
strcasecmp("Accept-Encoding", "Expect") = -4
strcasecmp("Accept-Language", "Expect") = -4
strcasecmp("Cache-control", "Expect") = -2
strcasecmp("Connection", "Expect") = -2
strcasecmp("Host", "Expect") = 3
strcasecmp("Pragma", "Expect") = 11
strcasecmp("User-Agent", "Expect") = 16
gettimeofday(0x40bf3168, NULL) = 0
strlen("/jkstatus") = 9
memcpy(0x080f7268, "/jkstatus", 10) = 0x080f7268
strlen("/cgi-bin") = 8
strncmp("/jkstatus", "/cgi-bin", 8) = 7
--- SIGSEGV (Segmentation fault) ---
chdir("/srv/www") = 0
sigemptyset(0xbfffec78, 0, 0, 0, 0) = 0
sigaction(11, 0xbfffec74, 0xbfffebe4, 0, 0) = 0
getpid() = 26732
kill(26732, 11) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: JK2 not working with virtual hosts
Posted by Costin Manolache <cm...@yahoo.com>.
Reinhard Moosauer wrote:
>
> Additional information:
> Without virtual host I got the request mapped. But no answer but
> a "segmentation fault .. child .. " in apache's error_log
Can you send a stack trace ?
I'm checking the hosts problem.
Costin
>
>
>
> thanks,
>
>
> Am Mittwoch, 12. März 2003 16:43 schrieb Reinhard Moosauer:
>> Hello List,
>>
>> I tried the binary "mod_jk2-1.3-eapi.so" from
>>
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
>>.0/ with apache 1.3 and virtual hosts.
>>
>> In short: absolutely no luck.
>> I read all available docs (which seen quite current) and enabled
>> debugging in workers2.properties, but I diddn't get the uri-maps right.
>> He didn't decode the host-part of the uri:-entries.
>>
>> Example:
>> [uri:www.myhost.com/servlet/*]
>> was decoded to:
>> uri=/servlet/*
>> host=www.myhost.com/servlet/*
>>
>> Weird! Even when I omit the host-part it doesn't find the map when I
>> start a request.
>> I tried several combinations:
>> [uri:www.myhost.com]
>> [uri:www.myhost.com:80/servlet/*]
>> [uri:www.myhost.com:/servlet/*]
>> [uri:/servlet/*]
>>
>> I read the source (from tomcat-4.1.18), and I found that the version must
>> be different (wrong source line numbers)
>> But the source seems to be ok. Did I use a broken version?
>> Where can I find more current binary versions?
>> Building it seems painful, when I look to the configure script.
>>
>> Any hint is greatly appreciated.
>>
>> regards,
>>
>> Reinhard
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: JK2 not working with virtual hosts
Posted by Reinhard Moosauer <rm...@moosauer.de>.
Hi,
yes. But where to get a binary for 2.0.2 and apache13?
(I should have asked earlier this time)
Reinhard
Am Mittwoch, 12. März 2003 20:58 schrieb Mladen Turk:
> > -----Original Message-----
> > From: Reinhard Moosauer [mailto:rm@moosauer.de]
> >
> > Additional information:
> > Without virtual host I got the request mapped. But no answer
> > but a "segmentation fault .. child .. " in apache's error_log
> >
> > > I tried the binary "mod_jk2-1.3-eapi.so" from
> > >http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
>
> 2/release/
>
> >v2.0
> >.0/ with apache 1.3 and virtual hosts.
>
> Could you try with 2.0.2. The 2.0.0 and (partially) 2.0.1 versions has
> some problems with the Virtual host,
> so you should use the 2.0.2.
>
> MT.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
RE: JK2 not working with virtual hosts
Posted by Mladen Turk <mt...@apache.org>.
> -----Original Message-----
> From: Reinhard Moosauer [mailto:rm@moosauer.de]
>
> Additional information:
> Without virtual host I got the request mapped. But no answer
> but a "segmentation fault .. child .. " in apache's error_log
>
> >
> > I tried the binary "mod_jk2-1.3-eapi.so" from
> >http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
2/release/
>v2.0
>.0/ with apache 1.3 and virtual hosts.
>
Could you try with 2.0.2. The 2.0.0 and (partially) 2.0.1 versions has
some problems with the Virtual host,
so you should use the 2.0.2.
MT.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: JK2 not working with virtual hosts
Posted by Reinhard Moosauer <rm...@moosauer.de>.
Additional information:
Without virtual host I got the request mapped. But no answer but
a "segmentation fault .. child .. " in apache's error_log
thanks,
Am Mittwoch, 12. März 2003 16:43 schrieb Reinhard Moosauer:
> Hello List,
>
> I tried the binary "mod_jk2-1.3-eapi.so" from
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
>.0/ with apache 1.3 and virtual hosts.
>
> In short: absolutely no luck.
> I read all available docs (which seen quite current) and enabled debugging
> in workers2.properties, but I diddn't get the uri-maps right.
> He didn't decode the host-part of the uri:-entries.
>
> Example:
> [uri:www.myhost.com/servlet/*]
> was decoded to:
> uri=/servlet/*
> host=www.myhost.com/servlet/*
>
> Weird! Even when I omit the host-part it doesn't find the map when I start
> a request.
> I tried several combinations:
> [uri:www.myhost.com]
> [uri:www.myhost.com:80/servlet/*]
> [uri:www.myhost.com:/servlet/*]
> [uri:/servlet/*]
>
> I read the source (from tomcat-4.1.18), and I found that the version must
> be different (wrong source line numbers)
> But the source seems to be ok. Did I use a broken version?
> Where can I find more current binary versions?
> Building it seems painful, when I look to the configure script.
>
> Any hint is greatly appreciated.
>
> regards,
>
> Reinhard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org