Search squid archive

helpers...

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

 



Hi,

I am trying to do the following:

  only if referer=external then run the external_acl helper
  then, run the url_rewrite helper in any case

This seems to work:

  external_acl_type filter %PATH /path/to/filter
  acl filter external filter
  acl our_referer referer_regex oursite.com
  http_access allow !our_referer filter

  url_rewrite_program /path/to/rewrite
  ...
  url_rewrite_access allow all

Is it ok or is there a better way?
 
Also, is there a way to pass 2 variables to the external_acl helper; like "%PATH %{Hdr:Referer}"?

Thx,
JD


      


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

  Powered by Linux