On 01/08/2006, at 15:30, Vladimir S. Tikhonjuk wrote:
Hi everyone! I have Authentication handler, which I set like: <Location /> PerlAuthenHandler Promtelecom::Authentication AuthType Basic AuthName "Promtelecom Network" Require valid-user </Location>Alseo I have 2 simple PerlHandler's: Debitor and DebitorDocuments, whichset like: PerlModule Promtelecom::Debitor <Location /debitor> SetHandler perl-script PerlHandler Promtelecom::Debitor </Location> PerlModule Promtelecom::DebitorDocuments <Location /debitor/documents> SetHandler perl-script PerlHandler Promtelecom::DebitorDocuments </Location> When I go to http://localhost/ by my browser, I see working Authentication Handler. When I go for the first time to http://localhost/debitor/ or http://localhost/debitor/documents I see Authentication Handler too. So, the question is: when I go to http://localhost/debitor/documents will the Debitor handler called ?Or will be the next chain: Authentication -> Debitor -> DebitorDocumentsinvoked ?
Only if you reverse the order. e.g.
PerlModule Promtelecom::DebitorDocuments
<Location /debitor/documents>
SetHandler perl-script
PerlHandler Promtelecom::DebitorDocuments
</Location>
PerlModule Promtelecom::Debitor
<Location /debitor>
SetHandler perl-script
PerlHandler Promtelecom::Debitor
</Location>
Apache will often report if you put them in the wrong order at
startup time.
Basically first one wins - so if the URL is "/debitor/documents/fred" and the first Location is "/debitor" - it would win. So you make sure that it is always least to most significant.
Scott -- * - * http://www.osdc.com.au - Open Source Developers Conference * - * Scott Penrose Anthropomorphic Personification Expert http://search.cpan.org/search?author=SCOTT suppressedDismaimer: While every attempt has been made to make sure that this email only contains zeros and ones, there has been no effort made to guarantee the quantity or the order.
Please do not send me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Microsoft is not the answer. It's the question. And the answer is no.
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.