Hi,

On 2005-11-23 20:13, Ilya Konstantinov wrote:

> Have you tried Apache with mod_proxy? It has a feature to redirect
> requests to a peer proxy (ProxyRemote), should be reasonably lightweight
> (with each new version, Apache gets more modular) and - well - what's
> more likely to be standard-compliant than Apache?

Good idea. Here's a minimal Apache proxy setup:

--------------------------------------
LoadModule access_module modules/mod_access.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

User apache
Group apache
ServerAdmin [EMAIL PROTECTED]
PidFile /var/run/httpd-proxy.pid
ErrorLog /var/log/httpd-proxy-error.log
ServerName proxybox
Listen 8080

StartServers         1
MinSpareThreads     10
MaxSpareThreads     30

ProxyRequests On
ProxyVia On

<Proxy *>
    Order allow,deny
    Allow from 127.0.0.1
</Proxy>

ProxyRemote * http://proxy.du.jour:8080

# A small disk cache too, while at it:

LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
CacheEnable disk /
CacheSize 65536
CacheRoot "/var/cache/httpd-proxy"
--------------------------------------

Save to /etc/httpd/conf/httpd-proxy.conf, then
# mkdir /var/cache/httpd-proxy
# chown apache:root /var/cache/httpd-proxy
# chmod 700 /var/cache/httpd-proxy
(using Fedora Core 4 paths).

To run/stop/restart:

# /usr/sbin/httpd.worker -f /etc/httpd/conf/httpd-proxy.conf -k start
# /usr/sbin/httpd.worker -f /etc/httpd/conf/httpd-proxy.conf -k stop
# /usr/sbin/httpd.worker -f /etc/httpd/conf/httpd-proxy.conf -k restart



On 2005-11-23 22:30, Haggai Eran wrote:
> I use squid on my laptop. The current memory usage is 11MB with 6MB
> resident, and it has 2 processes running. I don't feel it is too heavy
> for my system, but of course it depends on the hardware.

The above Apache setup uses 1.6MB resident (impressive modularization
work by the Apache team!), and is rather simpler to configure than Squid.

  Eran

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to