为了节省一些带宽,我决定在我的Debian上建立一个privoxy和ziproxy包。
其想法是只从localhost访问privoxy,并将ziproxy放在后面,以压缩输出和接受连接,因为它支持与privoxy不同的密码身份验证,而且我不想为所有代理运行免费的服务。
但他们似乎不适合我。它们分别工作很好,但是当我试图将它们链接起来时,添加
NextProxy = "127.0.0.1"
NextPort = 8118若要进行ziproxy配置,ziproxy将开始显示错误404。
所有的吐露都是这样的:
Ziproxy
Port = 100500
Address = "0.0.0.0"
NextProxy = "127.0.0.1"
NextPort = 8118
AccessLogFileName = "/var/log/ziproxy/access.log"
PasswdFile="/etc/ziproxy/http.passwd"
UseContentLength = false
Compressible = {
"shockwave", "msword", "msexcel", "mspowerpoint", "rtf", "postscript",
"java", "javascript", "staroffice", "vnd.", "futuresplash",
"asp", "class", "font", "truetype-font", "php", "cgi", "executable",
"shellscript", "perl", "python", "awk", "dvi", "css",
"xhtml+xml", "rss+xml", "xml", "pdf", "tar"
}
ImageQuality = {20,15,15,15}
ModifySuffixes = false Privoxy
user-manual /usr/share/doc/privoxy/user-manual
confdir /etc/privoxy
logdir /var/log/privoxy
actionsfile standard.action # Internal purpose, recommended
actionsfile global.action # Global default setting for all sites
actionsfile default.action # Main actions file
actionsfile user.action # User customizations
filterfile default.filter
logfile logfile
listen-address :8118
toggle 1
enable-remote-toggle 0
enable-remote-http-toggle 0
enable-edit-actions 0
enforce-blocks 0
buffer-limit 4096
forwarded-connect-retries 0
accept-intercepted-requests 1
allow-cgi-request-crunching 0
split-large-forms 0我想知道我错过了什么?
当然,他们现在都很沮丧,当然,当他们开始合作的时候,聆听-- privoxy的地址将会改变。
提前感谢!
发布于 2011-12-23 05:53:25
嗯,我解决了。
这都是ziproxy的错,在Lenny中的版本是有缺陷的--没有链,默认情况下以根的形式运行。所以,我只是更新挤压,它现在工作得很好。
在更新过程中,其他应用程序都没有受到损害(postfix/dovecot/S情postfix、韵律、apache和Dancer框架)。
不过,对于“严肃”的服务器来说,这不是一个很好的解决方案。
https://serverfault.com/questions/343373
复制相似问题