in reply to Re^3: httpd.conf configuration with mod_perl
in thread httpd.conf configuration with mod_perl

There is good documentation on porting code to mod_perl 2. Please read it.

It should be fine to send a redirect. Your code may not be sending the right headers. The simplest way to check is to use Firefox with the LiveHTTPHeaders extension and see what is being sent to the browser.

REDIRECT is not available unless you imported it from Apache2::Const. You can just use it directly: Apache2::Const::REDIRECT.

  • Comment on Re^4: httpd.conf configuration with mod_perl

Replies are listed 'Best First'.
Re^5: httpd.conf configuration with mod_perl
by dariusj (Sexton) on Nov 13, 2007 at 13:02 UTC
    I've read the documentation a few times (or at least the parts that were relevant - lot of stuff that I'm not using).

    The problem was not actually with REDIRECT, which works (apologies for misdiagnosing the problem) - the problem was that in the <Location> Apache2 configuration the actual location is followed by a Regexp, which altered the behaviour of the redirect.

    Though this was meant to be the case in Apache 1.3 too (at least according to the docs), the behaviour was different - basically another location was picked up in Apache 2 that wasn't in Apache 1.3.