Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 98623 invoked by uid 500); 23 Jun 2003 23:21:54 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 98518 invoked from network); 23 Jun 2003 23:21:43 -0000 Received: from unknown (HELO inet.novadevices.local) (205.240.153.226) by daedalus.apache.org with SMTP; 23 Jun 2003 23:21:43 -0000 Received: from MLARA (pc32 [192.168.1.32]) by inet.novadevices.local (8.11.6/8.11.6) with SMTP id h5NNJnC11728 for ; Mon, 23 Jun 2003 18:19:49 -0500 Message-ID: <003201c339dd$e8c731b0$2001a8c0@MLARA> From: "Mauricio Lara \(NOVA\)" To: Date: Mon, 23 Jun 2003 18:19:34 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002F_01C339B3.FFBEA800" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-InetCheckMail: Found to be clean X-InetCheckMail-Information: Please contact the ISP for more information X-InetCheckMail-SpamScore: s X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Proxy logs ------=_NextPart_000_002F_01C339B3.FFBEA800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Friends I tried configure mod_proxy all work fine but I have a big problem with = the logs files. My network=20 wan ip/lan ip 192.168.1.222 ip lan 192.168.1.32 Apache/2.0.40 Apache /2.0.40 --------------------- = --------------------- | | ___________________| | |___________ | |---------------------| mod_proxy I wanna maintain the original client ip in the logs because when I open = my log file in my lan server the only ip is 192.168.1.222(proxy httpd = server) In my first server (222) the httpd.conf is normal and in the virtual = section I have this ServerName www.interna.com ProxyPass / http://192.168.1.32/ ProxyPassReverse / http://192.168.1.32/ I tried with but not work ProxyPreserveHost On RPAFenable On RPAFsethostname On RPAFproxy_ips 127.0.0.1 192.168.1.222 192.168.1.221 192.168.1.32 ProxyRequests On ProxyVia Off My client is other pc in the lan not 192.168.1.222 for example = 192.168.1.11 But my log file always is: 192.168.1.222 - - [23/Jun/2003:14:16:58 -0500] "GET /apache_pb.gif = HTTP/1.1" 200 2326 192.168.1.222 - - [23/Jun/2003:14:16:58 -0500] "GET / HTTP/1.1" 200 1852 192.168.1.222 - - [23/Jun/2003:14:16:58 -0500] "GET /apache_pb.gif = HTTP/1.1" 200 2326 192.168.1.222 - - [23/Jun/2003:14:16:58 -0500] "GET / HTTP/1.1" 200 1852 192.168.1.222 - - [23/Jun/2003:14:16:58 -0500] "GET /apache_pb.gif = HTTP/1.1" 200 2326 192.168.1.222 - - [23/Jun/2003:17:17:14 -0500] "GET / HTTP/1.1" 200 1852 192.168.1.222 - - [23/Jun/2003:17:17:14 -0500] "GET /apache_pb.gif = HTTP/1.1" 304 - 192.168.1.222 - - [23/Jun/2003:17:17:16 -0500] "GET / HTTP/1.1" 200 1852 192.168.1.222 - - [23/Jun/2003:17:17:16 -0500] "GET /apache_pb.gif = HTTP/1.1" 304 - 192.168.1.222 - - [23/Jun/2003:17:17:18 -0500] "GET /manual/index.html = HTTP/1.1" 200 5740 192.168.1.222 - - [23/Jun/2003:17:17:19 -0500] "GET = /manual/images/pixel.gif HTTP/1.1" 304 - 192.168.1.222 - - [23/Jun/2003:17:17:19 -0500] "GET = /manual/images/apache_header.gif HTTP/1.1" 304 - 192.168.1.222 - - [23/Jun/2003:17:17:21 -0500] "GET = /manual/mod/index-bytype.html HTTP/1.1" 200 6390 192.168.1.222 - - [23/Jun/2003:17:17:22 -0500] "GET = /manual/images/index.gif HTTP/1.1" 200 1540 192.168.1.222 - - [23/Jun/2003:17:17:22 -0500] "GET = /manual/images/sub.gif HTTP/1.1" 200 6083 192.168.1.222 - - [23/Jun/2003:17:17:22 -0500] "GET = /manual/images/home.gif HTTP/1.1" 200 1465 Please help me=20 Thanks Mauricio ------=_NextPart_000_002F_01C339B3.FFBEA800 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Friends
 
 
I tried configure mod_proxy all work = fine but I=20 have a big problem with the logs files.
 
My network
 
 
wan ip/lan ip=20 192.168.1.222          =     =20 ip lan 192.168.1.32
 
Apache/2.0.40    =    =20             =    =20             Apache=20 /2.0.40
---------------------       &= nbsp;           &n= bsp;           &nb= sp;  =20 ---------------------
|       =20             |=20 ___________________|        =    =20          |
|___________=20 |            =             &= nbsp;       =20  |---------------------|
mod_proxy
 
 
I wanna maintain the original client ip = in the logs=20 because when I open my log file in my lan server the only ip is=20 192.168.1.222(proxy httpd server)
 
In my first server (222) the httpd.conf = is normal=20 and in the virtual section I have this
 
<VirtualHost = *>
   =20 ServerName www.interna.com
   = =20 ProxyPass / http://192.168.1.32/
  &nb= sp;=20 ProxyPassReverse / http://192.168.1.32/
</VirtualHos= t>
 
I tried with but not work
    ProxyPreserveHost=20 On
    RPAFenable=20 On
    RPAFsethostname On
    = RPAFproxy_ips=20 127.0.0.1 192.168.1.222 192.168.1.221 192.168.1.32
    = ProxyRequests On
    ProxyVia = Off

My client is other pc in the lan = not=20 192.168.1.222 for example 192.168.1.11
 
But my log file always is:
 
192.168.1.222 - - = [23/Jun/2003:14:16:58=20 -0500] "GET /apache_pb.gif HTTP/1.1" 200 2326
192.168.1.222 - - = [23/Jun/2003:14:16:58=20 -0500] "GET / HTTP/1.1" 200 1852
192.168.1.222 - - = [23/Jun/2003:14:16:58=20 -0500] "GET /apache_pb.gif HTTP/1.1" 200 2326
192.168.1.222 - - = [23/Jun/2003:14:16:58=20 -0500] "GET / HTTP/1.1" 200 1852
192.168.1.222 - - = [23/Jun/2003:14:16:58=20 -0500] "GET /apache_pb.gif HTTP/1.1" 200 2326
192.168.1.222 - - = [23/Jun/2003:17:17:14=20 -0500] "GET / HTTP/1.1" 200 1852
192.168.1.222 - - = [23/Jun/2003:17:17:14=20 -0500] "GET /apache_pb.gif HTTP/1.1" 304 -
192.168.1.222 - - = [23/Jun/2003:17:17:16=20 -0500] "GET / HTTP/1.1" 200 1852
192.168.1.222 - - = [23/Jun/2003:17:17:16=20 -0500] "GET /apache_pb.gif HTTP/1.1" 304 -
192.168.1.222 - - = [23/Jun/2003:17:17:18=20 -0500] "GET /manual/index.html HTTP/1.1" 200 5740
192.168.1.222 - - = [23/Jun/2003:17:17:19=20 -0500] "GET /manual/images/pixel.gif HTTP/1.1" 304 -
192.168.1.222 - - = [23/Jun/2003:17:17:19=20 -0500] "GET /manual/images/apache_header.gif HTTP/1.1" 304 = -
192.168.1.222 - - = [23/Jun/2003:17:17:21=20 -0500] "GET /manual/mod/index-bytype.html HTTP/1.1" 200 = 6390
192.168.1.222 - - = [23/Jun/2003:17:17:22=20 -0500] "GET /manual/images/index.gif HTTP/1.1" 200 1540
192.168.1.222 - - = [23/Jun/2003:17:17:22=20 -0500] "GET /manual/images/sub.gif HTTP/1.1" 200 6083
192.168.1.222 - - = [23/Jun/2003:17:17:22=20 -0500] "GET /manual/images/home.gif HTTP/1.1" 200 = 1465
 
 
Please help me
 
Thanks
 
Mauricio
------=_NextPart_000_002F_01C339B3.FFBEA800--