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 *....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |