[squid-users] Re: updated

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 17 Jul 2002 21:53:18 +0200

That you can do, but you should probably make it a browser redirect..

http://www.squid-cache.org/Doc/FAQ/FAQ-15.html#ss15.4

Regards
Henrik

Ryan Hairyes wrote:
> ok then .... but can this be done this way? minus the html stuff (change it
> to print "http://$homesite")??? Im one of those people who like to create
> things to see how something like that would work. Even if I do end up
> using your external_acl stuff. Am I asking the wrong person? Instead of
> bothing you with it ... if you know anyone that is good with perl who may
> be in a better position to help me (and not as busy as you) then if you
> would please ... let me know. I appreciate what you have done. But I would
> really like to try it out by creation first.
>
> Thanks.
>
> > What is this?
> >
> > > if($addr eq '') {
> > > print "Content-Type: text/html";
> > > print <<HTML;
> > > <meta http-equiv="Refresh"
> > > content = "0;
> > > URL=http://$homesite">
> > > HTML
> > > }
> >
> > and this???
> >
> > > if($dbip ne $addr) {
> > > print "Content-Type: text/html";
> > > print <<HTML;
> > > <meta http-equiv="Refresh"
> > > content = "0;
> > > URL=http://$homesite">
> > > HTML
> > > } else {
> >
> > A redirector can only return a URL, not a HTML page..
> >
> >
> > Based on what you are doing I would say external_acl is exacly what you
> > need... a lot simpler to do these things there..
> >
> > Regards
> > Henrik
Received on Wed Jul 17 2002 - 13:53:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:17 MST