WARNING: This setup is no longer maintained on any of my servers! I'll just leave it there for historical purposes. I've switched over to AptCacherNG?!
Running a local APT mirror on ... to provide faster access to packages for clients inside
home.fladi.at network.
Packages
Configuration
Edit
/etc/apt-cacher/apt-cacher.conf to customize email adress denoting the administrator of the cache.
To integrate it with Apache2 one can either use the symlink in
/etc/apache2/conf.d/ which is created upon installation of the package or include the file
/etc/apt-cacher/apache.conf i a virtual host configuration:
Include /etc/apt-cacher/apache.conf
Access
While being connected to the
home.fladi.at network the APT sources in
/etc/apt/sources.list can be modified to use the local mirror.
This:
deb http://ftp.at.debian.org/debian/ unstable main contrib non-free
has to be adapted to look like this:
deb http://server.home.fladi.at/apt-cacher/ftp.at.debian.org/debian/ unstable main contrib non-free
In short, every source gets his URL prpended with
server.home.fladi.at/apt-cacher/ to point it to the local mirror. This setup wil not work outside the
home.fladi.at network because
server.home.fladi.at will not resolve globally.
The Apache interface exposes some information on the cacher at
http://server.home.fladi.at/apt-cacher/.