Mark Hindley writes:

Hi,

>> Sat Jan  3 10:21:02 2009|debug [8421]: Checking host localhost in absolute 
>> URI
>> Sat Jan  3 10:21:02 2009|debug [8421]: Host in Absolute URI is not this 
>> server
> 
> ^^^^^^^ This is the error. localhost should be recognised as the local server
> and ignored.
> 
> 
> I don't want to use this patch as it will break transparent proxying in
> CGI mode. Could you try the patch below and tell me if it is fixed

I've just tested your patch, and although it fixes the error you marked
above, it does not fix the problem:

apt-get output:

Fetched 17.3kB in 0s (25.8kB/s)
W: GPG error: http://localhost unstable Release: The following
signatures were invalid: NODATA 1 NODATA 2
W: Failed to fetch
http://localhost/apt-cacher/debian/dists/unstable/main/binary-i386/Packages.bz2
 Sub-process bzip2 returned an error code (2)


>From apt-cacher error log:

Sun Feb 22 13:13:38 2009|debug [27744]: New CGI connection
Sun Feb 22 13:13:38 2009|debug [27744]: client is localhost
Sun Feb 22 13:13:38 2009|debug [27744]: Client 127.0.0.1 passed access
control rules
Sun Feb 22 13:13:38 2009|debug [27744]: Processing a new request line
Sun Feb 22 13:13:38 2009|debug [27744]: got: GET
/debian/dists/unstable/Release
Sun Feb 22 13:13:38 2009|debug [27744]: Processing a new request line
Sun Feb 22 13:13:38 2009|debug [27744]: got:
Sun Feb 22 13:13:38 2009|debug [27744]: Checking host localhost in
absolute URI
Sun Feb 22 13:13:38 2009|debug [27744]: Host in Absolute URI is this server
Sun Feb 22 13:13:38 2009|debug [27744]: Resolved request is
//debian/dists/unstable/Release
Sun Feb 22 13:13:38 2009|127.0.0.1|---
/usr/share/apt-cacher/apt-cacher.pl [cgi]: Usage error
Sun Feb 22 13:13:38 2009|debug [27744]: Clean up before exiting.


Thanks,
robert



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to