Advertisement
Guest User

Untitled

a guest
Jun 6th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. shutdown_lifetime 3 seconds
  2. # Allow local network(s) on interface(s)
  3. acl localnet src 192.168.10.0/24
  4. uri_whitespace strip
  5.  
  6. acl dynamic urlpath_regex cgi-bin \?
  7. cache deny dynamic
  8. cache_mem 8 MB
  9. maximum_object_size_in_memory 32 KB
  10. memory_replacement_policy heap GDSF
  11. cache_replacement_policy heap LFUDA
  12. cache_dir ufs /var/squid/cache 100 16 256
  13. minimum_object_size 0 KB
  14. maximum_object_size 20480 KB
  15. offline_mode offcache_swap_low 90
  16. cache_swap_high 95
  17.  
  18. # No redirector configured
  19.  
  20.  
  21. #Remote proxies
  22.  
  23.  
  24. # Setup some default acls
  25. acl allsrc src all
  26. acl localhost src 127.0.0.1/32
  27. acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 8443 3128 1025-65535
  28. acl sslports port 443 563 8443
  29. acl manager proto cache_object
  30. acl purge method PURGE
  31. acl connect method CONNECT
  32.  
  33. # Define protocols used for redirects
  34. acl HTTP proto HTTP
  35. acl HTTPS proto HTTPS
  36.  
  37. http_access allow manager localhost
  38.  
  39. http_access deny manager
  40. http_access allow purge localhost
  41. http_access deny purge
  42. http_access deny !safeports
  43. http_access deny CONNECT !sslports
  44.  
  45. # Always allow localhost connections
  46. http_access allow localhost
  47.  
  48. request_body_max_size 0 KB
  49. delay_pools 1
  50. delay_class 1 2
  51. delay_parameters 1 -1/-1 -1/-1
  52. delay_initial_bucket_level 100
  53. delay_access 1 allow allsrc
  54.  
  55. # Reverse Proxy settings
  56. https_port en.ip.address.em:443 accel cert=/usr/pbi/squid-amd64/etc/squid/5389da7c06214.crt key=/usr/pbi/squid-amd64/etc/squid/5389da7c06214.key defaultsite=en.siteom.hu vhost
  57. cache_peer 192.168.10.5 parent 443 0 proxy-only no-query originserver login=PASS connection-auth=on ssl sslflags=DONT_VERIFY_PEER front-end-https=on name=OWA_HOST_pfs
  58. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/owa.*$
  59. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/exchange.*$
  60. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/public.*$
  61. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/exchweb.*$
  62. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/ecp.*$
  63. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/OAB.*$
  64. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/Microsoft-Server-ActiveSync.*$
  65. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/rpc/rpcproxy.dll.*$
  66. acl OWA_URI_pfs url_regex -i ^https://en.siteom.hu/rpcwithcert/rpcproxy.dll.*$
  67. cache_peer_access OWA_HOST_pfs allow OWA_URI_pfs
  68. cache_peer_access OWA_HOST_pfs deny allsrc
  69. never_direct allow OWA_URI_pfs
  70. http_access allow OWA_URI_pfs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement