to actually recognize where the redirect loops come from i should have to take a look at the /etc/apache2/sites-available/xxx.conf file. i assume that there you define your Apache2::AuthClients module to be the content handler for your site. thus every request to the location described in that config file will be answered by your module.
however, there are two ways for solving your problem: 1) use the $r->internal_redirect_handler method. you'll find an explanation of it in the docs on Apache2::SubRequest. 2.) why do you return an OK when actually you want a redirect? there is a http response code indicating a redirect: 301 (permanent redirect, probably not what you need), and 302 (temporary redirect). i don't know for the moment what the Apache2::Const denotations are, but a quick glance at the docs on Apache2::Response revealed a method called $r->custom_response which might be of a help.
--------------------------------
masses are the opiate for religion.

In reply to Re: Apache2 Mod_perl 2 without a endless loop of redirect by TOD
in thread Apache2 Mod_perl 2 without a endless loop of redirect by overworked

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.