Package: apt-cacher
Version: 0.8.6
Severity: Important

Problem: apt-cacher's apache.conf is no longer loaded, because apache2 now only loads files matching "/etc/apache2/conf.d/*.conf", and apt-cacher's file is /etc/apache2/conf.d/apt.cacher.

Solution: Rename /etc/apache2/conf.d/apt-cacher to /etc/apache2/conf.d/apt-cacher.conf. This should be corrected in /usr/share/apt-cacher/install.pl (and remove.pl also).

Details:
After upgrading apache2 today, apt-cacher no longer worked, giving 404 errors upon attempted access. I finally tracked it down to the new version of apache2 only loading config files matching "/etc/apache2/conf.d/*.conf", whereas the old version matched "/etc/apache2/conf.d/[^.#]*". Apt-cacher installs its apache config as a symlink in /etc/apache2/conf.d/apt-cacher, which matches the old regexp but not the new one. After renaming the symlink to apt-cacher.conf and force-reload'ing apache, everything is back to normal.


I don't know if this bug should be filed against apache2 for breaking the /etc/apache2/conf.d directory, or if this was an intentional change that apt-cacher has not yet followed, and the bug belongs to apt-cacher, but I'm assuming the latter until told otherwise. I didn't see any mention of it in the apache2 changelog, but I assume it was done for a reason.

-Andrew

====
[EMAIL PROTECTED]:/etc/apache2# dpkg --status apt-cacher
Package: apt-cacher
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 124
Maintainer: Jonathan Oxer <[EMAIL PROTECTED]>
Architecture: all
Version: 0.8.6
Depends: perl (>= 5.6.0-16), wget, apache | apache-ssl | apache2
Conffiles:
 /etc/cron.daily/apt-cacher 733b2b93ad59947f7c26e9481c0879a3
 /etc/logrotate.d/apt-cacher f79de6b33a930c372ac1b2d59765f98d
 /etc/apt-cacher/apache.conf 4b1ff2712630f922c09a41500ae49f20
 /etc/apt-cacher/apt-cacher.conf 8a1e8e71cacc6192f54b3364da442f46
Description: caching system for .deb packages
 Apt-cacher performs caching of .deb packages which
 have been downloaded by local users. When a package
 is requested, the cache checks whether it already
 has the latest version, in which case it sends the
 package to the user immediately. If not, it
 downloads the package while streaming it to the user
 at the same time. A local copy is then kept for use
 by other users.



[EMAIL PROTECTED]:/etc/apache2# dpkg -l apache2\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii apache2 2.0.54-2 next generation, scalable, extendable web se
ii apache2-common 2.0.54-2 next generation, scalable, extendable web se
un apache2-dev <none> (no description available)
ii apache2-doc 2.0.54-2 documentation for apache2
un apache2-module <none> (no description available)
un apache2-mpm-pe <none> (no description available)
ii apache2-mpm-pr 2.0.54-2 traditional model for Apache2
un apache2-mpm-th <none> (no description available)
un apache2-mpm-wo <none> (no description available)
un apache2-prefor <none> (no description available)
un apache2-thread <none> (no description available)
ii apache2-utils 2.0.54-2 utility programs for webservers




[EMAIL PROTECTED]:/etc/apache2# ls -l apache2.conf*
-rw-r--r--  1 root root 12520 2005-05-03 19:47 apache2.conf
-rw-r--r--  1 root root 12520 2005-05-03 17:32 apache2.conf.bak
-rw-r--r--  1 root root 12393 2004-05-28 19:17 apache2.conf.dpkg-old
-rw-r--r--  1 root root 12483 2005-05-03 17:32 apache2.conf.old

[EMAIL PROTECTED]:/etc/apache2# diff -u apache2.conf.old apache2.conf
--- apache2.conf.old    2005-05-03 17:32:15.000000000 -0500
+++ apache2.conf        2005-05-03 19:47:04.000000000 -0500
@@ -123,7 +123,7 @@
 Include /etc/apache2/ports.conf

 # Include generic snippets of statements
-Include /etc/apache2/conf.d/[^.#]*
+# Include /etc/apache2/conf.d/[^.#]*

 #Let's have some Icons, shall we?
 Alias /icons/ "/usr/share/apache2/icons/"
@@ -392,3 +392,4 @@
 # Include the virtual host configurations:
 Include /etc/apache2/sites-enabled/[^.#]*

+Include /etc/apache2/conf.d/*.conf


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



Reply via email to