On Sun, 8 Feb 1998, Brian wrote:
> >
> > And patch src/icp.c function parseHttpRequest so that the acceleration
> > part looks like
> > /* prepend the accel prefix */
> > if (opt_accel_uses_host && ...
> > ...
> > } else if (vhost_mode) {
> > ...
> > }
> > instead of the other way around.
> > A patch that does this is available from
> > http://hem.passagen.se/hno/squid/squid-1.1.20.host_and_virtual.patch
> > (cd to main directory, and patch -p1 <patchfile")
>
> The patch is gone from there, the link is broken off there page, anyone
> know where to find it? I am doing my transparent proxying with 1.1.20,
> and I don't have my squid patched so I am now worried about possible
> cache corruption.
>
> Brian
so I patched it manually using the above directions:
/* prepend the accel prefix */
if (opt_accel_uses_host && (t = mime_get_header(req_hdr, "Host"))) {
/* Put the local socket IP address as the hostname */
url_sz = strlen(url) + 32 + Config.appendDomainLen;
icpState->url = xcalloc(url_sz, 1);
sprintf(icpState->url, "http://%s:%d%s",
inet_ntoa(icpState->me.sin_addr),
(int) Config.Accel.port,
url);
debug(12, 5, "VHOST REWRITE: '%s'\n", icpState->url);
} else if (vhost_mode) {
/* If a Host: header was specified, use it to build the URL
* instead of the one in the Config file. */
I am hoping that correct.
>
>
>
> >
> > ---
> > Henrik Nordström
> > Sparetime Squid Hacker
> >
>
> /-------------------------- signal@shreve.net -----------------------------\
> | Brian Feeny | USR TC Hubs | ShreveNet Inc. (318)222-2638 |
> | Network Administrator | Perl, Linux | Web hosting, online stores, |
> | ShreveNet Inc. | USR Pilot | Dial-Up 14.4-56k, ISDN & LANs |
> | 89 CRX DX w/MPFI, lots of |-=*:Quake:*=-| http://www.shreve.net/ |
> | mods/Homepage coming soon |LordSignal/SN| Quake server: 208.206.76.47 |
> \-------------------------- 318-222-2638 x109 -----------------------------/
>
>
/-------------------------- signal@shreve.net -----------------------------\
| Brian Feeny | USR TC Hubs | ShreveNet Inc. (318)222-2638 |
| Network Administrator | Perl, Linux | Web hosting, online stores, |
| ShreveNet Inc. | USR Pilot | Dial-Up 14.4-56k, ISDN & LANs |
| 89 CRX DX w/MPFI, lots of |-=*:Quake:*=-| http://www.shreve.net/ |
| mods/Homepage coming soon |LordSignal/SN| Quake server: 208.206.76.47 |
\-------------------------- 318-222-2638 x109 -----------------------------/
Received on Sun Feb 08 1998 - 09:10:34 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:49 MST