Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # speedtest
- # ========================================================================================================
- acl speedtest url_regex -i \/speedtest\/.*\.(jpg|png|txt|php).*
- acl speedtest2 url_regex -i ^http:\/\/.*speedtest\.net\/id\/.*\.php.*
- acl speedtest3 url_regex -i ^http:\/\/.*api\.ookla\.com\/.*\.php
- url_rewrite_access allow speedtest
- url_rewrite_access allow speedtest2
- url_rewrite_access allow speedtest3
- url_rewrite_access deny all
- url_rewrite_program /etc/squid/rewritespeedtest.pl
- redirector_bypass on
- cache_peer 192.168.6.254 parent 80 0 no-digest no-tproxy
- dead_peer_timeout 5 seconds
- cache_peer_access 192.168.6.254 allow speedtest
- cache_peer_access 192.168.6.254 allow speedtest2
- cache_peer_access 192.168.6.254 allow speedtest3
- cache_peer_access 192.168.6.254 deny all
- always_direct deny speedtest
- never_direct allow speedtest
- always_direct deny speedtest2
- never_direct allow speedtest2
- always_direct deny speedtest3
- never_direct allow speedtest3
- url_rewrite_children 32 startup=10 idle=1 concurrency=50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement