Created
October 22, 2013 00:27
-
-
Save hanxue/7093267 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- squid.conf 2013-10-21 20:46:05.000000000 +0800 | |
+++ patch/squid-patched.conf 2013-10-21 23:49:07.000000000 +0800 | |
@@ -2469,10 +2469,18 @@ | |
# URL - ie, what it fetches. The Store URL rewriter rewrites Squid's | |
# _store_ URL - ie, what it uses to store and retrieve objects. | |
# | |
#Default: | |
# none | |
+#### BEGIN Add to squid.conf for intelligentmirror #### | |
+storeurl_rewrite_program /usr/bin/python /etc/squid/intelligentmirror/intelligentmirror.py | |
+storeurl_rewrite_children 15 | |
+acl store_rewrite_list urlpath_regex -i .rpm$ | |
+acl store_rewrite_list urlpath_regex -i .deb$ | |
+storeurl_access allow store_rewrite_list | |
+storeurl_access deny all | |
+#### END Add to squid.conf for intelligentmirror#### | |
# TAG: storeurl_rewrite_children | |
# | |
# | |
#Default: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment