1. Requires =========== 1. squid 2.7 (Doesn't work with squid <= 2.6 or squid 3.0) 2. python 3. python-iniparse 2. Installation (for Redhat and derivatives) ============================================ a) Download latest version of intelligentmirror from http://kulbirsaini.fedorapeople.org/stuff/intelligentmirror/ . b) Untar the package. [root@localhost root]# tar -xvzf intelligentmirror-x.x.x.tar.gz c) Go to intelligentmirror-x.x.x directory [root@localhost intelligentmirror-x.x.x]# cd intelligentmirror-x.x.x d) Copy intelligentmirror.conf to /etc/intelligentmirror.conf [root@localhost intelligentmirror-x.x.x]# cp intelligentmirror.conf /etc/intelligentmirror.conf f) Copy intelligentmirror directory to /etc/squid/ [root@localhost intelligentmirror-x.x.x]# cp -r intelligentmirror /etc/squid/ 3. Configuration ================ Assuming you have squid installed. The following configurations are required to get it running. Add the following lines to your squid.conf which is generally found in /etc/squid/squid.conf . #### BEGIN Add to squid.conf #### 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 #### Save squid.conf and reload the squid service using [root@proxy root]# service squid reload 4. Bugs, Suggestions, Comments =============================== Mail them to Kulbir Saini 5. Online Help ============== 1. Project Page : https://fedorahosted.org/intelligentmirror 2. How to configure squid http://fedora.co.in/content/how-configure-squid-proxy-server 3. How to write custorm squid redirector in python http://fedora.co.in/content/writing-custom-redirector-plugin-squid-python