LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help to cache a web to squid web proxy (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-to-cache-a-web-to-squid-web-proxy-933679/)

mrhokibanget 03-09-2012 09:49 PM

need help to cache a web to squid web proxy
 
what should i do to cache a url like this and how to write refresh_pattern for url like this :

1331256353.567 540 192.168.0.22 TCP_MISS/200 71051 GET http://patch.gfo.web.id/ELF/20090211...mMall.ini.bz2? - DIRECT/180.178.110.49 application/x-bzip2
1331256353.923 123 192.168.0.22 TCP_MISS/200 20265 GET http://patch.gfo.web.id/ELF/20090211...ssion.ini.bz2? - DIRECT/180.178.110.44 application/x-bzip2
1331256354.097 112 192.168.0.22 TCP_MISS/200 19959 GET http://patch.gfo.web.id/ELF/20090211...nster.ini.bz2? - DIRECT/180.178.110.49 application/x-bzip2
1331256354.202 43 192.168.0.22 TCP_MISS/200 3442 GET http://patch.gfo.web.id/ELF/20090211..._Node.ini.bz2? - DIRECT/180.178.110.44 application/x-bzip2
1331256354.311 91 192.168.0.22 TCP_MISS/200 10001 GET http://patch.gfo.web.id/ELF/20090211...T_Npc.ini.bz2? - DIRECT/180.178.110.49 application/x-bzip2
1331256354.644 306 192.168.0.22 TCP_MISS/200 59456 GET http://patch.gfo.web.id/ELF/20090211...Spell.ini.bz2? - DIRECT/180.178.110.44 application/x-bzip2
1331256355.255 400 192.168.0.22 TCP_MISS/200 74632 GET http://patch.gfo.web.id/ELF/20090211...Index.ini.bz2? - DIRECT/180.178.110.49 application/x-bzip2


i am using squid version squid-2.7.STABLE9-22.1

thanks in advance

mrhokibanget 03-11-2012 09:22 PM

help please, thanks

Satyaveer Arya 03-11-2012 10:30 PM

Why don't you try searching on google? What I searched on Google is all this:
http://www.squid-cache.org/Doc/config/refresh_pattern/
http://etutorials.org/Server+Adminis...fresh_pattern/
These links may help you defining your rule for refresh_pattern. You can also refer some squid server book to go through the acls.
Hope it helps you!
Good luck!

mrhokibanget 03-12-2012 08:42 AM

thanks for replay,

for normal file extension i successed cache them, but for extension with "?" always misslike this file :

1331256353.567 540 192.168.0.22 TCP_MISS/200 71051 GET http://patch.gfo.web.id/ELF/20090211...mMall.ini.bz2? - DIRECT/180.178.110.49 application/x-bzip2
1331256353.923 123 192.168.0.22 TCP_MISS/200 20265 GET http://patch.gfo.web.id/ELF/20090211...ssion.ini.bz2? - DIRECT/180.178.110.44 application/x-bzip2
1331256354.097 112 192.168.0.22 TCP_MISS/200 19959 GET http://patch.gfo.web.id/ELF/20090211...nster.ini.bz2? - DIRECT/180.178.110.49 application/x-bzip2

thanks in advance


All times are GMT -5. The time now is 03:06 PM.