Re: [squid-users] Redirection - How to in English for non programmers...

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 12 Feb 2009 16:38:21 +0100

fre 2009-02-13 klockan 00:22 +1030 skrev Geoffrey ROBERTS:

> >> http://host.site.name/rest/of/link/todocument
> > You can probably do it by a cache_peer, telling Squid to connect to port
> > 80 on that server.
>
> Ah... the docuserve site is not a cache, does that matter?

It's all about HTTP.

cache peers can either be proxies or origin http servers.

> > Or alternatively here is a small perl url rewriter doing the needed
> > rewrites..
> >
> > #!/usr/bin/perl -p
> > BEGIN { $|=1; }
> > s|http://host.site.name:8080\b|http://host.site.name|;
>
> Tried that one already. As soon as I uncomment the redirector tag and add the path to the redirect.perl
> in squid.conf and restart Squid, no one can access anything, anywhere via squid.
> Comment it out and squid works normally again.
> Same effect as with the mostly equivalent .php script.
> Using Squid 2.5 stable, any point in updating?

Can you run the script from command line?

Did you remember to make it executable?

chmod +x scriptname

Regards
Henrik
Received on Thu Feb 12 2009 - 15:38:31 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 12 2009 - 12:00:02 MST