Public bug reported: when try to run apt-cacher 1.6.10ubuntu2 in cgi-mode with non standard port (in my case port 8088) the apt-cacher does not work.
See Log /var/log/apt-cacher/error.log: Tue May 8 10:34:11 2012|debug [8207]: New CGI connection Tue May 8 10:34:11 2012|debug [8207]: testing denied_hosts Tue May 8 10:34:11 2012|debug [8207]: Client 10.123.64.80 passed access control rules Tue May 8 10:34:11 2012|debug [8207]: Processing a new request line Tue May 8 10:34:11 2012|debug [8207]: got: GET /security.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz Tue May 8 10:34:11 2012|debug [8207]: Processing a new request line Tue May 8 10:34:11 2012|debug [8207]: got: Tue May 8 10:34:11 2012|debug [8207]: Checking host lucid-repository.nbg.atrada.net in absolute URI Tue May 8 10:34:11 2012|info [8207]: Unable to connect to lucid-repository.nbg.atrada.net Tue May 8 10:34:11 2012|debug [8207]: Clean up before exiting. The line Tue May 8 10:34:11 2012|info [8207]: Unable to connect to lucid-repository.nbg.atrada.net points to the error: port 80 is used not port 8088 Suggested Fix: in /usr/share/apt-cacher/apt-cacher replace line 386: old: $testpath="http://$ENV{SERVER_NAME}/$testpath" if $mode && $mode eq 'cgi'; new: $testpath="http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/$testpath" if $mode && $mode eq 'cgi'; ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: apt-cacher 1.6.10ubuntu2 [modified: usr/share/apt-cacher/apt-cacher] ProcVersionSignature: Ubuntu 2.6.32-41.88-server 2.6.32.59+drm33.24 Uname: Linux 2.6.32-41-server x86_64 Architecture: amd64 Date: Tue May 8 11:50:37 2012 InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427) PackageArchitecture: all ProcEnviron: LC_CTYPE=de_DE@euro PATH=(custom, no user) LANG=C SHELL=/bin/bash SourcePackage: apt-cacher ** Affects: apt-cacher (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug lucid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996460 Title: CGI-Mode with non standard port To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-cacher/+bug/996460/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs