httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Marcondes <>
Subject Re: [users@httpd] Mod_Proxy with Squid
Date Tue, 27 Jul 2004 22:52:45 GMT

mod_proxy wont be able to spoof your client ips, you would need to
hack it (and the kernel) to make it work.
You may switch the order of your "proxy" .
Squid receive your clients requests and pass it all to an apache ( web
accelerator)  with mod_proxy and mod_clamav . This way you keep your
control access on squid (but loses on apache) , is a trade off you
cant avoid without spoofing ,


----- Original Message -----
From: Mauricio Lara (NOVA) <>
Date: Fri, 23 Jul 2004 17:01:54 -0500
Subject: [users@httpd] Mod_Proxy with Squid

Hi folks 
I have a big problem, I have mod_proxy and squid proxy on my network
because I need mod_clamav
virus checking 
I have this config 
Listen 8080 
ProxyRequests On 
ProxyVia on
ProxyPreserveHost On 
ProxyRemote * 
ClamavMode local 
ClamavTmpdir /var/tmp/clamav 
ClamavDbdir /home/clamav/share/clamav 
Include /home/etc/httpd/safepatterns.conf 
ClamavSizelimit 100000 
ClamavReloadInterval 3600 
<Proxy *>  
Order Deny,Allow 
SetOutputFilter CLAMAV 
<Location /clamav>  
SetHandler clamav  
You note that I use ProxyRemote to send traffic to my squid server the
problem is that
my squid server receives something like 

090619793.398 11775 TCP_CLIENT_REFRESH_MISS/200 74969 GET - DEFAULT_PARENT/ text/html
Where is ip address from my web server but not my client
ip address (  then I lose every squid
config like control access because my client ip was masquerade to
server ip ( You note in my config file
I have ProxyPreserveHost On  but doesnt work and my Client host ip
always is changed.
Please help me 

"If you really want something in this life, you have to work for it.
Now, quiet! They're about to announce the lottery numbers..."
- Homer Simpson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message