首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何查看哪些URL被Privoxy阻塞

如何查看哪些URL被Privoxy阻塞
EN

Unix & Linux用户
提问于 2013-09-16 08:18:40
回答 1查看 6.4K关注 0票数 6

我希望看到一个URL被Privoxy阻塞的日志,但是我在任何地方都找不到它。

我的配置文件(/usr/local/var/log/privoxy/logfile)中的相关行如下:

代码语言:javascript
复制
confdir /usr/local/etc/privoxy
logdir /usr/local/var/log/privoxy
logfile logfile

日志文件/usr/local/var/log/privoxy/logfile为空。

是否阻止URL登录到另一个文件中?或者如何打开阻塞URL的日志记录?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2013-09-16 10:21:53

根据http://www.privoxy.org/user-manual/config.html#LOGDIR,日志文件应该在/var/log/privoxy中。但是,您有/usr/local/var/log/privoxy/

然后,日志文件捕获的详细信息取决于调试选项:

代码语言:javascript
复制
  debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
  debug     2 # show each connection status
  debug     4 # show I/O status
  debug     8 # show header parsing
  debug    16 # log all data written to the network
  debug    32 # debug force feature
  debug    64 # debug regular expression filters
  debug   128 # debug redirects
  debug   256 # debug GIF de-animation
  debug   512 # Common Log Format
  debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
  debug  2048 # CGI user interface
  debug  4096 # Startup banner and warnings.
  debug  8192 # Non-fatal errors
  debug 32768 # log all data read from the network
  debug 65536 # Log the applying actions

启用debug 1024应该可以满足您的需要。

票数 10
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/90843

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档