water has asked for the wisdom of the Perl Monks concerning the following question:
On the new server, Apache issues a redirect message but doesn't redirect:% # code snippet % if ($action2 eq 'del-att') { % my $sth = Attribute->sql_kill; % $sth->execute($att); % Attribute->dbi_commit; % $m->clear_buffer; % $m->redirect("/dimatt2.html?cl=$cl&em=$em");
We get the same results even if we explictly specify the status code (301 or 302) in the Mason redirect call.<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>200 OK</title> </head><body> <h1>OK</h1> <p>The document has moved <a href="dimatt2.html?cl=3&em=1">here</a +>.</p> <hr /> </body></html>
We're guessing the server isn't configged right (virtual named server), vs. this being a Mason issue, as the code ran fine under AP 1.... would anyone have any suggestions as to what this might be? Google searching on the error phrase didn't yield any solns.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OT: HTML::Mason & apache redirects
by PodMaster (Abbot) on Apr 02, 2004 at 02:24 UTC | |
by water (Deacon) on Apr 02, 2004 at 23:52 UTC | |
by PodMaster (Abbot) on Apr 03, 2004 at 20:15 UTC | |
|
Re: Re: OT: HTML::Mason & apache redirects
by neilwatson (Priest) on Apr 02, 2004 at 14:46 UTC |