I'm running squid3-3.4.8i've been searching for a solution to replace cached jpg with other jpg stored on server or on internet. There are many tools like squidred, volta, asqredir. But none of them are working on Debian, or their guides are incomplete. I just need simple jpg link to replace with other link. Is there a way to do this?I don't remember where i stuck on installing Volta for the first time. This time:root@S:~/Volta/volta-0.3.0# makePackage lua5.2 was not found in the pkg-config search path.Perhaps you should add the directory containing `lua5.2.pc'to the PKG_CONFIG_PATH environment variableNo package 'lua5.2' foundcc -O2 -L/usr/lib -I/usr/include    -c -o accept_loop.o accept_loop.cIn file included from accept_loop.c:31:0:volta.h:77:17: fatal error: lua.h: No such file or directorycompilation terminated.make: *** [accept_loop.o] Error 1I have donwloaded and installed Lua into /root/Lua/lua-5.3.3Then tried asqredir from guide asqredir.sourceforge.net, but the section testing asqredir doesn't work.For example when I type line to test:www.samopage.com IP_of_computer - GETI get an empty line. In browser also do not see jpg change.Is there easy way to do this?EDIT:I tried changing cache_effective_user in squid.conf to root or proxy - do not work. Here is the logs from cache.log:root@SRSQUID4:/var/log/squid3# cat /var/log/squid3/cache.log | tail2016/06/11 19:46:54 kid1| ipcCreate: /root/asqredir/asqredir-0.3/asqredir: (13) Permission denied2016/06/11 19:46:54 kid1| WARNING: redirector #Hlpr0 exited2016/06/11 19:46:54 kid1| Too few redirector processes are running (need 1/5)2016/06/11 19:46:54 kid1| Starting new helpers2016/06/11 19:46:54 kid1| helperOpenServers: Starting 1/5 'asqredir' processesasqredir rights:-rwxrwxrwx 1 root root 11120 Jun  9 17:30 asqredirEDIT:after all i see white area instead of new photo. No matter if i choose redirected url: https://www.dropbox.com/s/nf72mxln42n5dmr/testas2.jpg?raw=1 or https://dl.dropboxusercontent.com/content_link/etP0OuZr71XL8GGv2lDWayip783yw1qV2KneRRRZK7HhX1NIE9sq4MQHjvPCeMEt/file which is the result of first one.
Squid3 to replace .jpg
debian;squid