Previous authors have praised the visitors who managed proxy server ubuntu mengoprek 10.10 and managed to add a new disk partition to store the cache. From the comments of the visitors are asked to have a problem parse_refreshpattern: Unknown option when running the command / etc / init.d / squid restart. The authors understand that despite the lack of squid works well and can keep the cache as well. However, there is sempura if there is a small problem. Therefore, the authors of the following messages is a solution to ubuntu squid proxy fully and optimally. Ok just follow these steps ... ...
Please download first squid2.7STABLE9PATCH.tar.gz download menu in this blog, you must rename the copy squid2.7STABLE9.tar.gz in / root Ubuntu Server
2. Remote Ubuntu with putty, stop squid # / etc / init.d / squid stop
3. Retrieved squid2.7STABLE9.tar.gz
# Tar xvf squid-2.7.STABLE9.tar.gz
# Squid 2.7.STABLE9-Cd
4. to translate the heart of the proxy machine
You can get here ->: kernel compilation
Open to select all, copy and paste Ubuntu, right click and enter ... wait for it to finish
follows:
# Make a
# Make install
After a successful compile, download squid.conf menu updated this blog, open WinSCP, the file / etc / squid / squid.conf to edit, and delete all the contents and replace it with, UPDATE, and re-adjust the cache directory ACLs according to the above settings.
Then open and edit squid.conf.pl add the following script:
================================================== =====
http_access deny dontrewrite
http_access deny! GetMethod
http_access allow store_rewrite_list_domain_CDN
http_access allow store_rewrite_list
http_access allow store_rewrite_list_domain
http_access allow store_rewrite_list_path
localhost http_access allow manager
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny! Security doors
Connect http_access deny! sslports
http_access deny all
================================================== =============
srcript you delete and inflicted the above script and then save the file squid.conf and continue squid.conf.pl
# Sudo chmod + x / etc / init.d / squid
# / Etc / init.d / squid stop
customize the cache folder
# Chown proxyku: proxyku / cache1
# Chown proxyku: proxyku / cache2
# Chmod 777 / cache1
# Chmod 777 / cache2
# Chown proxy: proxy / etc / squid / storeurl.pl
# Chmod 777 / etc / squid / storeurl.pl
# Squid-f / etc / squid / squid.conf-z
# / Etc / init.d / squid restart
if you can not parse_refreshpattern: Unknown option .... Congratulations, you've got the squid patch 2.7Stable9 success.
You can view the client log HIT type the command:
tail-f / var / log / squid / access.log | ccze
tail-f / var / log / squid / access.log | grep HIT
NOTE: This update squid.conf configuration is the setting for the dinamyc content. The experience of the author, at the time of complete customer access, 1 (one) day and can afford to store more than 2 GB of hard disk cache to the proxy server, then install the hard drive to a large cache .