Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 20493 invoked from network); 16 Jan 2006 13:45:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 13:45:03 -0000 Received: (qmail 9155 invoked by uid 500); 16 Jan 2006 13:44:54 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 8515 invoked by uid 500); 16 Jan 2006 13:44:51 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 8504 invoked by uid 99); 16 Jan 2006 13:44:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 05:44:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.56.241.17] (HELO orsa.atos-infogerance.fr) (193.56.241.17) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 05:44:50 -0800 Received: from minotaure.atos-infogerance.fr ([193.56.47.17]) by orsa.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id k0GDiSKI015480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 16 Jan 2006 14:44:28 +0100 Received: from exchange2k301.gaia.fr (localhost.localdomain [127.0.0.1]) by minotaure.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id k0GDiO71011272 for ; Mon, 16 Jan 2006 14:44:25 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Jan 2006 14:44:26 +0100 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D43012FA245@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] ProxyPass does not work with hostnamesonlyIP's.(mod_proxyApache 1.3) Thread-Index: AcYaoIktOwGwVtoTT8iuHBX08toxZgAAWlqA From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] ProxyPass does not work with hostnamesonlyIP's.(mod_proxyApache 1.3) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, it seems to me like that request worked just fine. No DNS lookup = problem here. Does the request actually reach the backend server = (intranet.foo.org) ? Could you share the relevant parts of your access and error logs +/- 30 = seconds? -ascs -----Original Message----- From: bsdsec@evolutiononline.com.au = [mailto:bsdsec@evolutiononline.com.au]=20 Sent: Monday, January 16, 2006 2:27 PM To: Axel-St=E9phane SMORGRAV Cc: users@httpd.apache.org Subject: RE: [users@httpd] ProxyPass does not work with = hostnamesonlyIP's.(mod_proxyApache 1.3) Does that rewrite rule do exactly the same as ProxyPass? Anyway, same=20 error page produced. Here is the rewrite_log: 10.5.5.50 - - [16/Jan/2006:23:53:23 +1030]=20 [talk.boehj.net/sid#43ad8018][rid#417 0f060/initial] (2) init rewrite engine with requested uri / 10.5.5.50 - - [16/Jan/2006:23:53:23 +1030]=20 [talk.boehj.net/sid#43ad8018][rid#417 0f060/initial] (3) applying pattern '^(/.*)$' to uri '/' 10.5.5.50 - - [16/Jan/2006:23:53:23 +1030]=20 [talk.boehj.net/sid#43ad8018][rid#417 0f060/initial] (2) rewrite / -> http://intranet.foo.org/ 10.5.5.50 - - [16/Jan/2006:23:53:23 +1030]=20 [talk.boehj.net/sid#43ad8018][rid#417 0f060/initial] (2) forcing proxy-throughput with = http://intranet.foo.org/ 10.5.5.50 - - [16/Jan/2006:23:53:23 +1030]=20 [talk.boehj.net/sid#43ad8018][rid#417 0f060/initial] (1) go-ahead with proxy request=20 proxy:http://intranet.foo.org/ [O K] Any ideas? Quoting Axel-St=E9phane SMORGRAV = : > Debug-level logs do not help much for debugging problems within=20 > mod_proxy. Try replacing the ProxyPass with the equivalent=20 > RewriteRule. > > RewriteLog log/rewrite_log > RewriteLogLevel 3 > RewriteEngine On > > RewriteRule ^(/.*)$ http://intranet.foo.org$1 [P,L] > ProxyPassReverse / http://intranet.foo.org/ > > You should now get some pretty detailed logs about what is happening. > > -ascs > > -----Original Message----- > From: bsdsec@evolutiononline.com.au = [mailto:bsdsec@evolutiononline.com.au] > Sent: Monday, January 16, 2006 2:10 PM > To: Axel-St=E9phane SMORGRAV > Cc: users@httpd.apache.org > Subject: RE: [users@httpd] ProxyPass does not work with hostnames=20 > onlyIP's.(mod_proxyApache 1.3) > > Hey, thanks for your help. I tried ping, nslookup which both work. I > even tried lynx and was able to bring up the page directly. > > I set LogLevel to "debug" and had a look in my error.log: > > [Mon Jan 16 23:28:23 2006] [notice] Apache/1.3.29 (Unix) = mod_ssl/2.8.16 > OpenSSL/ > 0.9.7g configured -- resuming normal operations > [Mon Jan 16 23:28:23 2006] [info] Server built: unknown > [Mon Jan 16 23:28:23 2006] [notice] Accept mutex: sysvsem (Default: = sysvsem) > [Mon Jan 16 23:28:26 2006] [debug] proxy_cache.c(0): Request for > http://internal.foo.org/favicon.ico, pragma_req=3D(unset), ims=3D0 > [Mon Jan 16 23:28:26 2006] [debug] proxy_util.c(0): File > /var/cache/Q/S/j/EGecnq > Rx1ZGkeYQFKdg not found > [Mon Jan 16 23:28:26 2006] [debug] proxy_cache.c(0): Local copy not > present or e > xpired. Declining. > [Mon Jan 16 23:28:27 2006] [debug] proxy_cache.c(0): Request for > http://internal.foo.org/, pragma_req=3D(unset), ims=3D0 > [Mon Jan 16 23:28:27 2006] [debug] proxy_util.c(0): File > /var/cache/j/T/K/B2vn9W > jcAum7mKEWvdw not found > [Mon Jan 16 23:28:27 2006] [debug] proxy_cache.c(0): Local copy not > present or e > xpired. Declining. > ------------------------------- > > Is all I get. I got the idea that maybe it was the caching that was = the > problem so I took out all caching directives then restarted apache and > got a log like this: > > [Mon Jan 16 23:29:36 2006] [notice] Apache/1.3.29 (Unix) = mod_ssl/2.8.16 > OpenSSL/ > 0.9.7g configured -- resuming normal operations > [Mon Jan 16 23:29:36 2006] [info] Server built: unknown > [Mon Jan 16 23:29:36 2006] [notice] Accept mutex: sysvsem (Default: = sysvsem) > [Mon Jan 16 23:29:43 2006] [debug] proxy_cache.c(0): No CacheRoot, so > no caching > . Declining. > ------------------------------- > > With the same result... FYI when I set ProxyPass to an IP (which = works) > my error log shows: > > [Mon Jan 16 23:36:31 2006] [debug] proxy_cache.c(0): Request for > http://172.16.0.5/, pragma_req=3D(unset), ims=3D0 > [Mon Jan 16 23:36:31 2006] [debug] proxy_util.c(0): File > /var/cache/4/g/H/NhiNLMZwLXwWY9wfp2w not found > [Mon Jan 16 23:36:31 2006] [debug] proxy_cache.c(0): Local copy not > present or expired. Declining. > [Mon Jan 16 23:36:31 2006] [debug] proxy_cache.c(0): Response is not > cacheable, unlinking /var/cache/4/g/H/NhiNLMZwLXwWY9wfp2w > [Mon Jan 16 23:36:31 2006] [debug] proxy_http.c(0): Content-Type: = text/html > [Mon Jan 16 23:36:31 2006] [debug] proxy_cache.c(0): Request for > http://172.16.0.1/favicon.ico, pragma_req=3D(unset), ims=3D0 > [Mon Jan 16 23:36:31 2006] [debug] proxy_cache.c(0): Unexpired data = available > [Mon Jan 16 23:36:31 2006] [debug] proxy_cache.c(0): Local copy > modified, send it > ------------------------------- > > Sorry about the ugly formatting! It's horrible to post logs =3D/ > > -pat > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server = Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org