You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jess Holle <je...@ptc.com> on 2004/03/29 19:38:43 UTC

Bug: jk2 2.0.4 vs. mod_dir

mod_jk2 2.0.4 seems to have the same issues that several mod_jk 1.2.x 
releases had with mod_dir.

Specifically something like:

    Alias /MyWebApp "D:\my_app_view\Myapp/codebase"
    <Directory "D:\my_app_view\Myapp/codebase">
       Options Indexes FollowSymLinks
    </Directory>
    <Directory "D:\my_app_view\Myapp/codebase/WEB-INF">
       AllowOverride None
       deny from all
    </Directory>

    <IfModule mod_jk2.c>
      <Location "/MyWebApp/servlet/*">
        JkUriSet worker ajp13:wtJk2Worker
      </Location>
    </IfModule>

Does not successfully map /MyWebApp/servlet/* to MyWebApp's servlets.  
Rather I get 404's.

Once I comment out the Alias and Directory lines, the JkUriSet directive 
works as expected (but the overall app does not work properly, of course).

This worked fine with mod_jk2 2.0.2.  This sort of configuration is 
*very* helpful in that it allows configuration of additional web apps by 
Including one conf file per web app and containing everything necessary 
for that web app for both mod_jk and mod_jk2 -- thus allowing the 
LoadModule line to determine everything and keeping web app 
configurations nicely separated.

A fix (patch now, 2.0.5 later?) for this would be greatly appreciated as 
there are important fixes and enhancements in mod_jk2 2.0.4.  Without 
this working, however, 2.0.4 is a non-starter for me.

--
Jess Holle

P.S.  I can certainly give more details, file a bugzilla bug, etc, as 
necessary.  I just got back from vacation, tried out mod_jk2 2.0.4 and 
wanted to get the ball rolling on this issue before I trudged through my 
e-mail backlog.


Re: Bug: jk2 2.0.4 vs. mod_alias

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Jess Holle wrote:
> Jess Holle wrote:
> 
>> jean-frederic clere wrote:
>>
>>>> Settings and test case of course more than welcome :=}
>>>
>>>
>>> I think I have reproduced it with the following:
>>> +++
>>>   Alias  /examples /opt/SMAWoIS/jakarta-tomcat-4.1.29/webapps/examples
>>>
>>>   <Location "/examples/servlet/*">
>>>     JkUriSet group ajp13:pgtr0327:8009
>>>   </Location>
>>> +++
>>> The /examples/servlet/* uri has "/examples/servlet/*-1" for uri and 
>>> match_type "suffix" sounds weird for me. 
>>
>>
>> I have also managed to reproduce this more succinctly than previously 
>> in almost the same fashion with:
>>
>>     Alias /servlets-examples
>>     "D:\Tomcats\Tomcat5020\webapps\servlets-examples"
>>     <Location "/servlets-examples/servlet/*">
>>       JkUriSet worker ajp13:wtJk2Worker
>>     </Location>
>>
>> The Tomcat servlet examples are not accessible with these settings.
>>
>> They are, however, (apart from static content like images, etc) once 
>> you remove the "Alias" line.
> 
> 
> P.S. Let me know if I should file a Bugzilla bug for this....

No that would be a duplicate of 18472 or 28016.

> 
> -- 
> Jess Holle
> 



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


Re: Bug: jk2 2.0.4 vs. mod_alias

Posted by Jess Holle <je...@ptc.com>.
Jess Holle wrote:

> jean-frederic clere wrote:
>
>>> Settings and test case of course more than welcome :=}
>>
>> I think I have reproduced it with the following:
>> +++
>>   Alias  /examples /opt/SMAWoIS/jakarta-tomcat-4.1.29/webapps/examples
>>
>>   <Location "/examples/servlet/*">
>>     JkUriSet group ajp13:pgtr0327:8009
>>   </Location>
>> +++
>> The /examples/servlet/* uri has "/examples/servlet/*-1" for uri and 
>> match_type "suffix" sounds weird for me. 
>
> I have also managed to reproduce this more succinctly than previously 
> in almost the same fashion with:
>
>     Alias /servlets-examples
>     "D:\Tomcats\Tomcat5020\webapps\servlets-examples"
>     <Location "/servlets-examples/servlet/*">
>       JkUriSet worker ajp13:wtJk2Worker
>     </Location>
>
> The Tomcat servlet examples are not accessible with these settings.
>
> They are, however, (apart from static content like images, etc) once 
> you remove the "Alias" line.

P.S. Let me know if I should file a Bugzilla bug for this....

--
Jess Holle

Re: Bug: jk2 2.0.4 vs. mod_alias

Posted by Jess Holle <je...@ptc.com>.
jean-frederic clere wrote:

>> Settings and test case of course more than welcome :=}
>
> I think I have reproduced it with the following:
> +++
>   Alias  /examples /opt/SMAWoIS/jakarta-tomcat-4.1.29/webapps/examples
>
>   <Location "/examples/servlet/*">
>     JkUriSet group ajp13:pgtr0327:8009
>   </Location>
> +++
> The /examples/servlet/* uri has "/examples/servlet/*-1" for uri and 
> match_type "suffix" sounds weird for me. 

I have also managed to reproduce this more succinctly than previously in 
almost the same fashion with:

    Alias /servlets-examples
    "D:\Tomcats\Tomcat5020\webapps\servlets-examples"
    <Location "/servlets-examples/servlet/*">
      JkUriSet worker ajp13:wtJk2Worker
    </Location>

The Tomcat servlet examples are not accessible with these settings.

They are, however, (apart from static content like images, etc) once you 
remove the "Alias" line.

This example is clearly contrived as it is simplified down to the bare 
essentials.  There are larger reasons for me needing to take this sort 
of approach...

--
Jess Holle

P.S.  I see warnings that "worker" is deprecated and that I should use 
"group" in the logs.  Is this just a change in terminology?  Where does 
it all apply?


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by Jess Holle <je...@ptc.com>.
jean-frederic clere wrote:

>> I think I have reproduced it with the following:
>> +++
>>   Alias  /examples /opt/SMAWoIS/jakarta-tomcat-4.1.29/webapps/examples
>>
>>   <Location "/examples/servlet/*">
>>     JkUriSet group ajp13:pgtr0327:8009
>>   </Location>
>> +++
>> The /examples/servlet/* uri has "/examples/servlet/*-1" for uri and 
>> match_type "suffix" sounds weird for me.
>
> And using a VirtualHost works around the problem... (That is why I 
> have not dectected it before).

And to re-iterate 2.0.2 does not have this issue.

--
Jess Holle


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


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
jean-frederic clere wrote:
> Henri Gomez wrote:
> 
>> Jess Holle wrote:
>>
>>> Henri Gomez wrote:
>>>
>>>> Jess Holle wrote:
>>>>
>>>>> Sorry, I should have said mod_alias, not mod_dir...
>>>>>
>>>>
>>>> With Apache 1.3 or 2.0 ?
>>>
>>>
>>>
>>>
>>> 2.0.49 on Windows.  I have not tried Solaris or AIX yet.  [I have not 
>>> bothered with mod_jk2 with Apache 1.3 -- I just use mod_jk there on 
>>> an old with old sort of principle.]
>>>
>>> I can produce a more definitive test case as needed.
>>>
>>> I poked around in the sources -- diffing them with 2.0.2 sources, 
>>> etc, but I couldn't quickly find the issue.
>>
>>
>>
>> Settings and test case of course more than welcome :=}
> 
> 
> I think I have reproduced it with the following:
> +++
>   Alias  /examples /opt/SMAWoIS/jakarta-tomcat-4.1.29/webapps/examples
> 
>   <Location "/examples/servlet/*">
>     JkUriSet group ajp13:pgtr0327:8009
>   </Location>
> +++
> The /examples/servlet/* uri has "/examples/servlet/*-1" for uri and 
> match_type "suffix" sounds weird for me.

And using a VirtualHost works around the problem... (That is why I have not 
dectected it before).

> 
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 



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


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Henri Gomez wrote:
> Jess Holle wrote:
> 
>> Henri Gomez wrote:
>>
>>> Jess Holle wrote:
>>>
>>>> Sorry, I should have said mod_alias, not mod_dir...
>>>>
>>>
>>> With Apache 1.3 or 2.0 ?
>>
>>
>>
>> 2.0.49 on Windows.  I have not tried Solaris or AIX yet.  [I have not 
>> bothered with mod_jk2 with Apache 1.3 -- I just use mod_jk there on an 
>> old with old sort of principle.]
>>
>> I can produce a more definitive test case as needed.
>>
>> I poked around in the sources -- diffing them with 2.0.2 sources, etc, 
>> but I couldn't quickly find the issue.
> 
> 
> Settings and test case of course more than welcome :=}

I think I have reproduced it with the following:
+++
   Alias  /examples /opt/SMAWoIS/jakarta-tomcat-4.1.29/webapps/examples

   <Location "/examples/servlet/*">
     JkUriSet group ajp13:pgtr0327:8009
   </Location>
+++
The /examples/servlet/* uri has "/examples/servlet/*-1" for uri and match_type 
"suffix" sounds weird for me.

> 
> 
> 
> ---------------------------------------------------------------------
> 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: Bug: jk2 2.0.4 vs. mod_dir

Posted by Henri Gomez <hg...@apache.org>.
Jess Holle wrote:

> Henri Gomez wrote:
> 
>> Jess Holle wrote:
>>
>>> Sorry, I should have said mod_alias, not mod_dir...
>>>
>>
>> With Apache 1.3 or 2.0 ?
> 
> 
> 2.0.49 on Windows.  I have not tried Solaris or AIX yet.  [I have not 
> bothered with mod_jk2 with Apache 1.3 -- I just use mod_jk there on an 
> old with old sort of principle.]
> 
> I can produce a more definitive test case as needed.
> 
> I poked around in the sources -- diffing them with 2.0.2 sources, etc, 
> but I couldn't quickly find the issue.

Settings and test case of course more than welcome :=}



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


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by Jess Holle <je...@ptc.com>.
Henri Gomez wrote:

> Jess Holle wrote:
>
>> Sorry, I should have said mod_alias, not mod_dir...
>>
>
> With Apache 1.3 or 2.0 ?

2.0.49 on Windows.  I have not tried Solaris or AIX yet.  [I have not 
bothered with mod_jk2 with Apache 1.3 -- I just use mod_jk there on an 
old with old sort of principle.]

I can produce a more definitive test case as needed.

I poked around in the sources -- diffing them with 2.0.2 sources, etc, 
but I couldn't quickly find the issue.

--
Jess Holle


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


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by Henri Gomez <hg...@apache.org>.
Jess Holle wrote:

> Sorry, I should have said mod_alias, not mod_dir...
> 

With Apache 1.3 or 2.0 ?

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


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by Jess Holle <je...@ptc.com>.
Sorry, I should have said mod_alias, not mod_dir...

--
Jess Holle

Jess Holle wrote:

> mod_jk2 2.0.4 seems to have the same issues that several mod_jk 1.2.x 
> releases had with mod_dir.
>
> Specifically something like:
>
>    Alias /MyWebApp "D:\my_app_view\Myapp/codebase"
>    <Directory "D:\my_app_view\Myapp/codebase">
>       Options Indexes FollowSymLinks
>    </Directory>
>    <Directory "D:\my_app_view\Myapp/codebase/WEB-INF">
>       AllowOverride None
>       deny from all
>    </Directory>
>
>    <IfModule mod_jk2.c>
>      <Location "/MyWebApp/servlet/*">
>        JkUriSet worker ajp13:wtJk2Worker
>      </Location>
>    </IfModule>
>
> Does not successfully map /MyWebApp/servlet/* to MyWebApp's servlets.  
> Rather I get 404's.
>
> Once I comment out the Alias and Directory lines, the JkUriSet 
> directive works as expected (but the overall app does not work 
> properly, of course).
>
> This worked fine with mod_jk2 2.0.2.  This sort of configuration is 
> *very* helpful in that it allows configuration of additional web apps 
> by Including one conf file per web app and containing everything 
> necessary for that web app for both mod_jk and mod_jk2 -- thus 
> allowing the LoadModule line to determine everything and keeping web 
> app configurations nicely separated.
>
> A fix (patch now, 2.0.5 later?) for this would be greatly appreciated 
> as there are important fixes and enhancements in mod_jk2 2.0.4.  
> Without this working, however, 2.0.4 is a non-starter for me.
>
> -- 
> Jess Holle
>
> P.S.  I can certainly give more details, file a bugzilla bug, etc, as 
> necessary.  I just got back from vacation, tried out mod_jk2 2.0.4 and 
> wanted to get the ball rolling on this issue before I trudged through 
> my e-mail backlog.
>
>


Re: Bug: jk2 2.0.4 vs. mod_dir

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Jess Holle wrote:
> mod_jk2 2.0.4 seems to have the same issues that several mod_jk 1.2.x 
> releases had with mod_dir.
> 
> Specifically something like:
> 
>    Alias /MyWebApp "D:\my_app_view\Myapp/codebase"
>    <Directory "D:\my_app_view\Myapp/codebase">
>       Options Indexes FollowSymLinks
>    </Directory>
>    <Directory "D:\my_app_view\Myapp/codebase/WEB-INF">
>       AllowOverride None
>       deny from all
>    </Directory>
> 
>    <IfModule mod_jk2.c>
>      <Location "/MyWebApp/servlet/*">
>        JkUriSet worker ajp13:wtJk2Worker
>      </Location>
>    </IfModule>
> 
> Does not successfully map /MyWebApp/servlet/* to MyWebApp's servlets.  
> Rather I get 404's.
> 
> Once I comment out the Alias and Directory lines, the JkUriSet directive 
> works as expected (but the overall app does not work properly, of course).
> 
> This worked fine with mod_jk2 2.0.2.  This sort of configuration is 
> *very* helpful in that it allows configuration of additional web apps by 
> Including one conf file per web app and containing everything necessary 
> for that web app for both mod_jk and mod_jk2 -- thus allowing the 
> LoadModule line to determine everything and keeping web app 
> configurations nicely separated.
> 
> A fix (patch now, 2.0.5 later?) for this would be greatly appreciated as 
> there are important fixes and enhancements in mod_jk2 2.0.4.  Without 
> this working, however, 2.0.4 is a non-starter for me.
> 
> -- 
> Jess Holle
> 
> P.S.  I can certainly give more details, file a bugzilla bug, etc, as 
> necessary.  I just got back from vacation, tried out mod_jk2 2.0.4 and 
> wanted to get the ball rolling on this issue before I trudged through my 
> e-mail backlog.
> 
> 

Is it with Apache-2.0 or Apache-1.3?


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