Squid I have not enough understanding it, the following test is just a record of my act. It can be guaranteed to be successful in this way, but Squid.conf is definitely the imperfection of many local configuration, fooled, this time will always look at this document.
This article is the second part of the full text, the first part can refer to the cached site planning 1 - mod_proxy
Practical test 2:
1. Experimental plan: Install Squid2.5 Stable1, then play squid-2.5.stable1-combined-logs.patch, refer to http://www.squid-cache.org/mail-archive/squid-dev/200301/0164.html. Perform a corresponding configuration, combined with the last established apache-back, test, check the log format is not Combined and write conclusions.
Friendly Tips: Don't do it, because the beginning is wrong, will push down ^ _ ^!
2. Download: wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.stable1.tar.gz wget http://www.squid-cache.org/mail-archive/squid-dev / 200301/tt-0164/squid-2.5.stable1-combined-logs.patch (facts prove this patch is useless)
3. Playing patchbash-2.03 # patch -p0 4. Compile: ./ Configure --prefix = / usr / local / Squid --Nable-useERAGENT-LOG --ENABLE-REFERER-LOG --ENABLE-DEFAULT-ERR-LANGUAGE = Simplify_Chinese && Make && Make Install /opt/test/apache/squid-2.5.stable1/src/main.c:601: undefined reason to `mallopt ' Pushing down: View the official website of Squid, find that Stable1 is launched on September 25, 2002, is obviously too old, replaces stable6, recompile, compile, compile! I have no mistake this time! However, patches still have problems, and finally prove that Patch has no effect! It is therefore do not have to play. 5. Configuration: Configure Squid.conf http_port 10.1.1.202:80httpd_accel_host 10.1.1.201acl acceleratedHost dst 10.1.1.201/255.255.255.255httpd_accel_port 80acl acceleratedPort port 8000httpd_accel_with_proxy onacl all src 0.0.0.0/0.0.0.0acl my.net src 10.1.1.0/255.255.255.0http_access allow acceleratedHost acceleratedPorthttp_access Allow my.nethttp_access deny all configures httpd.conflisten 10.1.1.202:8000 Start Apache / usr / local / apache-front / bin / apachectl graceful Configuration environment: mkdir / usr / local / squid1 / var / cachechown -r number: nobody / usr / local / squid1 / var / cachechown -r number: noBody / usr / local / squid1 / var / logs Start Squid Creating Cache Directory: / usr / local / Squid / Sbin / Squid -z Start Squid / USR / Local / Squid / Sbin / Squid Stop Squid: / USR / LOCAL / SQUID / SBIN / SQUID -K Shutdown Enables new configuration: / usr / local / Squid / Sbin / Squid -k Reconfig in conclusion: Performance has not been tested, but performance must be strong than mod_proxy in accordance with common sense. But how can I make it record the log of Apache's Combine format yet, depressed!