[OPEN-ILS-DEV] WWW::Redirect

Bill Erickson erickson at esilibrary.com
Wed Jul 9 11:12:20 EDT 2008


On Wednesday 09 July 2008 10:39 Doug Kyle wrote:
> I've created a lib_ips.txt file under /openils/conf, and have these
> lines in startup.pl:
>
> use OpenILS::WWW::Redirect qw(/openils/conf/opensrf_core.xml);
> OpenILS::WWW::Redirect->parse_ips_file('/openils/conf/lib_ips.txt');
>
> No Redirecting is being done and nothing from Redirect.pm is being
> logged.  What am I missing?

Hi Doug,

In /etc/apache2/eg_vhost.conf, remove this:

RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml

And add this:

<LocationMatch ^/$>
    SetHandler perl-script
    PerlHandler OpenILS::WWW::Redirect
    PerlSendHeader On
    allow from all
</LocationMatch>

-b

-- 
Bill Erickson
| VP, Software Development & Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: erickson at esilibrary.com
| web: http://esilibrary.com


More information about the Open-ils-dev mailing list