mproxy is a small non-caching HTTP/HTTPS proxy. It is designed to run from 
a tcpserver. It can use stdout or syslog for logging. I recommend to use 
multilog (http://cr.yp.to/deamontools.html) and supervise or minit 
(http://www.fefe.de/minit/) to start mproxy.

usage: mproxy [-dqQv] [-t timeout] [s- ssltimeout]

where 
  -d drop program name prefix in logmessages.
  -q no output (even not on errors).
  -Q quite, only output error messages (default).
  -v output error messages as well as proxy informations.
  -t <timeout> set the timeout for server answers (default 30sec).
  -s <ssltimeout> set timeout for network traffic on ssl connections (default
     20sec).

Installation

Edit config.h
make install
cp mproxy /usr/sbin

Create <path>/mproxy/run:
#!/bin/sh
exec 2>&1
exec mtcps -v -g `id mproxy` -u `id mproxy` 0 <ip> <port> mproxy

Create <path>/mproxy/log/run:
#!/bin/sh
exec setuidgid mproxyl multilog t /var/log/mproxy
