Re: [squid-users] mime match pipe to redir program?

This is a discussion on Re: [squid-users] mime match pipe to redir program? within the Squid Users forums, part of the Web Server and Related Forums category; On Thu, 19 Feb 2004, Anders Larsson wrote: > how can i use a mime and then send the matched *....


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2004
Henrik Nordstrom
 
Posts: n/a
Default Re: [squid-users] mime match pipe to redir program?

On Thu, 19 Feb 2004, Anders Larsson wrote:

> how can i use a mime and then send the matched *.zip to a redir program? like
> squirm. If this cannot be done any other hints how to conf it.


What you can is to match on file extensions using the urlpath_regex acl in
the redirector_access directive. I think this is what you are asking for.

acl downloads urlpath_regex -i \.zip$ \.exe$
redirector_access allow downloads

But you can't match on mime as the mime type is only known after receiving
the reply from the origin server, and redirectors are executed before the
request is forwarded.

Regards
Henrik

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0