Re: SQUID2.1 PATCH2 & internal icons

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 19 Jan 1999 00:26:49 +0100

Pavel P. Zabortsev wrote:

> Can I change port number in tag "SRC=..." for squid's internal icons?

Not without changing the code. It may be possible to change
mime.c:mimeGetIconURL to

char *
mimeGetIconURL(const char *fn)
{
    char *icon = mimeGetIcon(fn);
    if (icon == NULL)
        return NULL;
    return internalRemoteUri(getMyHostname(), 80,
"/squid-internal-static/icons/", icon);
}

What I have done when I needed a similar setup was to bind the frontend
proxy to the (internal) proxy IP address, and Squid to the loopback IP
address (tcp_incoming_address 127.0.0.1) and have both listen on port
80.

---
Henrik Nordstrom
Spare time Squid hacker
Received on Mon Jan 18 1999 - 16:48:15 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:04 MST