Gerald Richter writes:
> >
> > Requesting y.html returns just '1 2', no redirection is taking place.
> >
> > I have also tried $r->internal_redirect and
> > $r->internal_redirect_handler also in combination with Apache::exit()
> > all with the same result.
> >
> > It works when setting PerlHandler only to Apache::Embperl in the first
> > FilesMatch.
> >
>
> Seems like the redirection header gets somewhere lost in the chain. Maybe
> err_header_out, instead of header_out solves the problem?
Sorry, err_header_out doesn't help a thing. It looks like Embperl is the
factor because when I'm using a normal registry script the redirection
works with chaining.
ie.
<Location /PERL>
Options ExecCGI
SetHandler perl-script
PerlHandler Apache::OutputChain Apache::GzipChain Apache::Registry
</Location>
and /PERL/x.pl
use Apache;
use Apache::Constants qw(REDIRECT);
$r = Apache->request;
$r->header_out("Location" => "/y.html");
$r->status(REDIRECT);
this works.
Dirk