Advertisement
ujiajah1

backupbebeb

Jun 12th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.03 KB | None | 0 0
  1. # speedtest
  2. # ========================================================================================================
  3. acl speedtest url_regex -i \/speedtest\/.*\.(jpg|png|txt|php).*
  4. acl speedtest2 url_regex -i ^http:\/\/.*speedtest\.net\/id\/.*\.php.*
  5. acl speedtest3 url_regex -i ^http:\/\/.*api\.ookla\.com\/.*\.php
  6. url_rewrite_access allow speedtest
  7. url_rewrite_access allow speedtest2
  8. url_rewrite_access allow speedtest3
  9. url_rewrite_access deny all
  10. url_rewrite_program /etc/squid/rewritespeedtest.pl
  11. redirector_bypass on
  12. cache_peer 192.168.6.254 parent 80 0 no-digest no-tproxy
  13. dead_peer_timeout 5 seconds
  14. cache_peer_access 192.168.6.254 allow speedtest
  15. cache_peer_access 192.168.6.254 allow speedtest2
  16. cache_peer_access 192.168.6.254 allow speedtest3
  17. cache_peer_access 192.168.6.254 deny all
  18. always_direct deny speedtest
  19. never_direct allow speedtest
  20. always_direct deny speedtest2
  21. never_direct allow speedtest2
  22. always_direct deny speedtest3
  23. never_direct allow speedtest3
  24. url_rewrite_children 32 startup=10 idle=1 concurrency=50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement