Search squid archive

Re: Strange entries from my log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/10/2013 9:54 p.m., Ralf Hildebrandt wrote:
* Amos Jeffries <squid3@xxxxxxxxxxxxx>:

The above ftp:// URL is a directory listing (ends with /). The HTML
view of that directory is generated by Squid and references to
Squids' internal icons for all the embeded graphics based on the FTP
directories /etc/squid/mime.conf URI mappings. Each icon URL on the
page goes to either the relative-URL
/squid-internal-static/icons/silk/...   or the full-URL
http://$visible_hostname/squid-internal-static/icons/silk/...
depending on the short_icon_urls directive.
OK, I'll have a look at that setting.
short_icon_urls is at it's default (so it's on!)

When short_icon_urls is set to ON (default) the relative-URLs are
used and the client browser will fetch
http://83.172.xx.xx/squid-internal-static/icons/silk/arrow_up.png
etc. Squid identifies the well-known URL segment
/squid-internal-static/ and sends back its icons/silk/arrow_ip.png
file.
I see.
I'm not sure yet why its saying "unknown request" for you.
Is this maby related to using c-icap via ICAP?

Aha. Possibly. If the URL being changed by that component?
The transaction is being labeled as internal on arrival, but the normal processing is done right up to the point of locating the icon in cache. It should always abe a HIT since the static objects are "served" by directly loading into the cache on startup.

 Maybe cache rules preventing the small icon *.png being stored?


Do you have the silk icons installed by Squid?
I'm installing from source:

root@proxy-cvk-1:/var/www/squid/icons/silk
contains a lot of icons, which are fairly old (2011!)

root@proxy-cvk-1:/var/www/squid/icons/silk# ls -ltr |grep arr
-rw-r--r-- 1 root root 372 Apr  5  2011 arrow_up.png

The sources contain the icons:

root@proxy-cvk-1:/usr/src# ls -ltr ./squid-3.4.0.2-20131012-r13007/icons/silk/arrow_up.png
-rwxr-xr-x 1 94 94 372 Oct 12 04:06 ./squid-3.4.0.2-20131012-r13007/icons/silk/arrow_up.png

Where would the icons usually go to?

In the /var/www/squid or /usr/share/squid/icons (aka --datadir=\${prefix}/share/squid3 ) I think was the old location. Looks like something is there so it should be served.

./configure --prefix=/usr --includedir=\${prefix}/include
--mandir=\${prefix}/share/man \
--infodir=\${prefix}/share/info --sysconfdir=/etc \
--localstatedir=/var --libexecdir=\${prefix}/lib/squid3 \
--disable-maintainer-mode --disable-dependency-tracking \
--disable-silent-rules --srcdir=. --datadir=\${prefix}/share/squid3 \
--sysconfdir=/etc/squid3 --mandir=/usr/share/man \
--with-cppunit-basedir=/usr --enable-inline --enable-async-io=6 \
--enable-storeio=aufs --enable-removal-policies=lru,heap \
--enable-underscores --enable-icap-client
--enable-follow-x-forwarded-for \
--enable-snmp --with-filedescriptors=65536 \
--with-large-files --with-default-user=proxy --enable-epoll \
--disable-ipv6

Amos




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux