Squid3 URLrewrite – 无法configuration

我在Debian Wheezy上安装了Squid3-3.4.8。 它正在执行caching任务。 我只想将一个jpgurlreplace为本地服务器或外部的另一个url。 我已经尝试过像Voltasquidredasqredir这样的解决scheme。

对于沃尔我卡在:

 root@S:~/Volta/volta-0.3.0# make Package 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 variable No package 'lua5.2' found cc -O2 -L/usr/lib -I/usr/include -c -o accept_loop.o accept_loop.c In file included from accept_loop.c:31:0: volta.h:77:17: fatal error: lua.h: No such file or directory compilation terminated. make: *** [accept_loop.o] Error 1 

Lua在:

/root/Lua/lua-5.3.3我正在按照INSTALL文件中的过程。

还有什么可以用来完成我的任务?

有没有其他的应用程序可以用来成功地进行URL重写

来源: https://bitbucket.org/mahlon/volta/overviewhttps://bitbucket.org/mahlon/volta/overview

将一个jpgurlreplace为我本地服务器中的另一个url

只写自己的东西不是很简单吗?

 #!/usr/bin/perl $| = 1; while (<>) { @line = split; $_ = $line[0]; s/www\.example\.com\/one\.jpg/www.example.com\/other.jpg/g; print $_ . "\n"; }