Re: [squid-users] executing command with requested url as an parameter

From: Bob Arctor <curious@dont-contact.us>
Date: Thu, 31 Jul 2003 19:12:01 +0200

yeah, this is perfectly acceptable!

could you give me an example setup doing this?
forwarding every url requested to
http://mycgi.server/cgi-bin/download.sh?http://original.request/
so i could pick $QUERY_STRING in download.sh...

this way squid could use external download accelerator to download files ...

On Thursday 31 July 2003 10:13, Henrik Nordstrom wrote:
> On Wednesday 30 July 2003 23.59, Bob Arctor wrote:
> > hello.
> > is it possible to configure squid to execute shell command with
> > requested URL as an parameter, and give output to the client?
>
> Yes and no.
>
> You can set up Squid to forward the request to a CGI program running
> on a web server of yours. This is done via a redirector helper
> rewriting the URL making it to be forwarded to your CGI script
> instead of the original requested URL.
>
> The URL the request is forwarded to does not need to be a CGI script.
> It can also be a static page, or any other type of web contents.
> Squid does not really care how the selected web server generates the
> content.
>
> Regards
> Henrik

-- 
-- 
Received on Thu Jul 31 2003 - 11:13:04 MDT

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