<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you very much, it worked!<br>
<br>
Alex Iliev wrote:<br>
<blockquote cite="mid20050419213538.GE16243@dartmouth.edu" type="cite">
  <pre wrap="">On Tue, Apr 19, 2005 at 09:03:28AM +0300, Giorgos Pallas wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">   Does anybody can give me any hint about how to run two instances of
   privoxy listening on two different ports, with two different
   configurations?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Sure, I do this with Debian, one privoxy talks to tor, the other doesn't. I
duplicated the /etc/init.d/ control script, diff as follows:

pipe:init.d/$ diff privoxy privoxy-tor
5c5
&lt; NAME=privoxy
---
  </pre>
  <blockquote type="cite">
    <pre wrap="">NAME=privoxy-tor
    </pre>
  </blockquote>
  <pre wrap=""><!---->8c8
&lt; CONFIGFILE=/etc/privoxy/config
---
  </pre>
  <blockquote type="cite">
    <pre wrap="">CONFIGFILE=/etc/privoxy/config-tor
    </pre>
  </blockquote>
  <pre wrap=""><!---->

Then there are the two config files, diff:

pipe:privoxy/$ diff config config-tor
134c134
&lt; logdir /var/log/privoxy
---
  </pre>
  <blockquote type="cite">
    <pre wrap="">logdir /var/log/privoxy-tor
    </pre>
  </blockquote>
  <pre wrap=""><!---->661c661,662
&lt; listen-address  127.0.0.1:8118
---
  </pre>
  <blockquote type="cite">
    <pre wrap=""># sasho: one port higher for tor-enabled privoxy
listen-address  127.0.0.1:8119
    </pre>
  </blockquote>
  <pre wrap=""><!---->1009,1010c1010,1011
&lt; # sasho:
&lt; #forward-socks4a / localhost:9050 .
---
  </pre>
  <blockquote type="cite">
    <pre wrap=""># sasho: forward to tor
forward-socks4a / localhost:9050 .
    </pre>
  </blockquote>
  <pre wrap=""><!---->

Hope it helps

Alex
  </pre>
</blockquote>
</body>
</html>