Re: Multiple Location directives question
John Siracusa wrote: I have something like: Location /foo SetHandler perl-script PerlHandler My::Foo /Location Location / SetHandler perl-script PerlHandler My::Bar AuthName Bar AuthType Basic PerlAuthenHandler My::Auth::Bar PerlAuthzHandler My::Authz::Bar require valid-user /Location What I want is for My::Foo to handle all URLs that start with /foo, without any authentication of any kind Then I want the remaining URLs to be handled by My::Bar using its authentication handlers What I get is that My::Bar handles everything Changing the order of the Location directives doesn't seem to help The Apache docs say that Location directives are done simultaneously, whatever that means this may be one of those cases where / is handled as a special case as I've said before, it seems people who set up / seem to get into trouble, but I never have a clear picture as to why (other than this nagging feeling, like a splinter in my mind) you might want to set up /foo and /bar then use mod_rewrite or something to map !/foo to /bar HTH --Geoff
Re: Multiple Location directives question
On 3/5/02 11:58 AM, Geoffrey Young wrote: you might want to set up /foo and /bar then use mod_rewrite or something to map !/foo to /bar Ug, there has to be another way :-/ -John
Re: Multiple Location directives question
Geoffrey Young wrote: John Siracusa wrote: I have something like: Location /foo SetHandler perl-script PerlHandler My::Foo /Location Location / SetHandler perl-script PerlHandler My::Bar AuthName Bar AuthType Basic PerlAuthenHandler My::Auth::Bar PerlAuthzHandler My::Authz::Bar require valid-user /Location What I want is for My::Foo to handle all URLs that start with /foo, without any authentication of any kind Then I want the remaining URLs to be handled by My::Bar using its authentication handlers Seems like it should work to me this may be one of those cases where / is handled as a special case Or maybe it's because there is no actual document there? Maybe installing a transhandler would help PerlTransHandler Apache::OK But this is just a stab in the dark really - Perrin
RE: Multiple Location directives question
Answering my own question, I stupidly forgot that I had a TransHandler up above mucking my URLs before the Location directives got a chance to try to match So my /foo location block was never seeing a /foo URL Still, I'm glad to see that the old system of post to a public list and then immediately find your dumb error still works like a charm :) Well, my response has just left the building, and the only thing I can think of right now (about my hasty response) is something I once saw on FidoNet: Open mouth, insert foot, echo internationally sigh L8r, Rob #!/usr/bin/perl -w use Disclaimer qw/:standard/;