Поставил Squid
Squid Cache: Version 2.5.STABLE12-NT
configure options: --enable-win32-service --enable-underscores --enable-storeio=
'ufs awin32 null' --enable-removal-policies='heap lru' --enable-snmp --enable-ht
cp --disable-wccp --enable-useragent-log --enable-referer-log --enable-auth='bas
ic ntlm digest' --enable-basic-auth-helpers='LDAP ncsa_auth win32_locallogon' --
enable-ntlm-auth-helpers=NTLMSSP-WIN32 --enable-external-acl-helpers='win32_grou
p ldap_group' --enable-large-cache-files--enable-delay-pools --enable-arp-acl --
prefix=c:/squid
Compiled as Windows System Service.
на Windows 2003 Server version 5.2
Пытаюсь к нему прикрутить redirector.pl: прописываю в c:\squid\etc\squid.conf:
redirect_program c:\squid\sbin\redirect.pl
Формат c:\squid\sbin\redirect.pl:
------------start c:\squid\sbin\redirect.pl--------------
#!c:/Perl/bin/perl -w
use strict;
$|=1;
while (<>) {
s@http://wmcatalog\.com/.*/tbanner\.cgi\?.*@http://my.proxy.local/blank.gif@;
....
s@http://adlik\.akavita\.com/bin/lik\?.*@http://my.proxy.local/blank.gif@;
print}
------------end c:\squid\sbin\redirect.pl--------------
При этом в C:\squid\var\logs\cache.log при запуске Сквида появляется:
2006/03/23 12:22:45| Starting Squid Cache version 2.5.STABLE12-NT for i686-pc-winnt...
2006/03/23 12:22:45| Running as SquidNT Windows System Service on Windows Server 2003
2006/03/23 12:22:45| Service command line is:
2006/03/23 12:22:45| Process ID 3700
2006/03/23 12:22:45| With 2048 file descriptors available
2006/03/23 12:22:45| With 2048 CRT stdio descriptors available
2006/03/23 12:22:45| Windows sockets initialized
2006/03/23 12:22:45| Performing DNS Tests...
2006/03/23 12:22:45| Successful DNS name lookup tests...
2006/03/23 12:22:45| DNS Socket created at 0.0.0.0, port 2673, FD 5
2006/03/23 12:22:45| Adding nameserver 127.0.0.1 from Registry
2006/03/23 12:22:45| helperOpenServers: Starting 5 'redirect.pl' processes
2006/03/23 12:22:45| ipcCreate: CHILD: c:/squid/sbin/redirect.pl: (8) Exec format error
2006/03/23 12:22:45| ipcCreate: PARENT: OK read test failed
2006/03/23 12:22:45| --> read returned 4
2006/03/23 12:22:45| --> got 'ERR
'
2006/03/23 12:22:45| WARNING: Cannot run 'c:/squid/sbin/redirect.pl' process.
2006/03/23 12:22:45| ipcCreate: CHILD: c:/squid/sbin/redirect.pl: (8) Exec format error
2006/03/23 12:22:45| ipcCreate: PARENT: OK read test failed
2006/03/23 12:22:45| --> read returned 4
2006/03/23 12:22:45| --> got 'ERR
'
2006/03/23 12:22:45| WARNING: Cannot run 'c:/squid/sbin/redirect.pl' process.
2006/03/23 12:22:45| ipcCreate: CHILD: c:/squid/sbin/redirect.pl: (8) Exec format error
2006/03/23 12:22:45| ipcCreate: PARENT: OK read test failed
2006/03/23 12:22:45| --> read returned 4
2006/03/23 12:22:45| --> got 'ERR
'
2006/03/23 12:22:45| WARNING: Cannot run 'c:/squid/sbin/redirect.pl' process.
2006/03/23 12:22:45| ipcCreate: CHILD: c:/squid/sbin/redirect.pl: (8) Exec format error
2006/03/23 12:22:45| ipcCreate: PARENT: OK read test failed
2006/03/23 12:22:45| --> read returned 4
2006/03/23 12:22:45| --> got 'ERR
'
2006/03/23 12:22:45| WARNING: Cannot run 'c:/squid/sbin/redirect.pl' process.
2006/03/23 12:22:45| ipcCreate: CHILD: c:/squid/sbin/redirect.pl: (8) Exec format error
2006/03/23 12:22:45| ipcCreate: PARENT: OK read test failed
2006/03/23 12:22:45| --> read returned 4
2006/03/23 12:22:45| --> got 'ERR
'
2006/03/23 12:22:45| WARNING: Cannot run 'c:/squid/sbin/redirect.pl' process.
2006/03/23 12:22:45| User-Agent logging is disabled.
2006/03/23 12:22:45| Referer logging is disabled.
2006/03/23 12:22:45| Unlinkd pipe opened on FD 8
2006/03/23 12:22:45| Swap maxSize 102400 KB, estimated 7876 objects
2006/03/23 12:22:45| Target number of buckets: 393
2006/03/23 12:22:45| Using 8192 Store buckets
2006/03/23 12:22:45| Max Mem size: 8192 KB
2006/03/23 12:22:45| Max Swap size: 102400 KB
2006/03/23 12:22:45| Rebuilding storage in c:/squid/var/cache (CLEAN)
2006/03/23 12:22:45| Using Least Load store dir selection
2006/03/23 12:22:45| Set Current Directory to c:/squid/var/cache
2006/03/23 12:22:45| Loaded Icons.
2006/03/23 12:22:46| Accepting HTTP connections at 0.0.0.0, port 3128, FD 14.
2006/03/23 12:22:46| Accepting ICP messages at 0.0.0.0, port 4130, FD 15.
2006/03/23 12:22:46| Accepting HTCP messages on port 4827, FD 16.
2006/03/23 12:22:46| Accepting SNMP messages on port 3401, FD 17.
2006/03/23 12:22:46| Ready to serve requests.
2006/03/23 12:22:46| Store rebuilding is 37.6% complete
2006/03/23 12:22:46| WARNING: All redirector processes are busy.
2006/03/23 12:22:46| WARNING: up to 1 pending requests queued
FATAL: Too many queued redirector requests (1 on 0)
Squid Cache (Version 2.5.STABLE12-NT): Terminated abnormally.
И Squid вылетает.
Пытался запускать c:/squid/sbin/redirect.pl с консоли (cmd) - работает нормально.
Поставил права доступа на c:/squid/sbin/redirect.pl "всем разрешение на все" - не помогает.