Search squid archive

Re: Redirection - How to in English for non programmers...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux