You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by co...@hyperreal.com on 1997/06/10 18:38:36 UTC
Re: mod_proxy/699: [PR 260] : Mod_Proxy passes original URLs, never rewritten URLs
Synopsis: [PR 260] : Mod_Proxy passes original URLs, never rewritten URLs
Comment-Added-By: coar
Comment-Added-When: Tue Jun 10 09:38:35 PDT 1997
Comment-Added:
[Additional text from submitter]
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.