From ccsmrh@bath.ac.uk Mon Jun 9 06:23:13 1997 Received: from goggins.bath.ac.uk (pp@goggins.bath.ac.uk [138.38.32.13]) by hyperreal.com (8.8.5/8.8.5) with ESMTP id GAA25827 for ; Mon, 9 Jun 1997 06:20:45 -0700 (PDT) Message-Id: <9706091419.aa17402@amos.bath.ac.uk> Date: Mon, 09 Jun 1997 14:19:57 +0100 From: Mark Hindess To: apbugs@hyperreal.com Subject: [PR 260] : Mod_Proxy passes original URLs, never rewritten URLs >Number: 703 >Category: pending >Synopsis: [PR 260] : Mod_Proxy passes original URLs, never rewritten URLs >Confidential: yes >Severity: serious >Priority: medium >Responsible: gnats-admin >State: closed >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Mon Jun 9 06:30:01 1997 >Last-Modified: Tue Jun 10 09:41:02 PDT 1997 >Originator: >Organization: >Release: >Environment: >Description: >How-To-Repeat: >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: coar State-Changed-When: Tue Jun 10 09:41:01 PDT 1997 State-Changed-Why: Text attached to the correct PR. >Unformatted: Some more info regarding the problem report I sent earlier today. I made the following two modifications to the proxy modules to get some more log information: *** mod_proxy.c Mon Jun 9 13:47:00 1997 --- mod_proxy.c.orig Mon Jun 9 13:38:59 1997 *************** *** 143,150 **** { r->filename = pstrcat(r->pool, "proxy:", ent[i].real, r->uri + len, NULL); - log_printf(r->server, "proxy alias %s -> %s", - r->uri, r->filename); r->handler = "proxy-server"; return OK; } --- 143,148 ---- *** proxy_http.c Mon Jun 9 14:05:11 1997 --- proxy_http.c.orig Mon Jun 9 14:01:48 1997 *************** *** 247,254 **** f = bcreate(pool, B_RDWR); bpushfd(f, sock, sock); - log_printf(r->server, "proxy request %s",url); - hard_timeout ("proxy send", r); bvputs(f, r->method, " ", url, " HTTP/1.0\015\012", NULL); bvputs(f, "Host: ", desthost, NULL); --- 247,252 ---- Using the directive: ProxyPass /internal/ss1 http://ss1.bath.ac.uk and requesting "/internal/ss1/" produces the following log messages: ["date"] proxy alias /internal/ss1/ -> proxy:http://ss1.bath.ac.uk/ ["date"] proxy request /internal/ss1/ Regards, Mark Hindess.