[Pkg-nagios-devel] Bug#495245: nagios3: Supplied apache2.conf file does not allow access to stylesheets by default

Michael Howe michael at michaelhowe.org
Fri Aug 15 17:03:29 UTC 2008


Package: nagios3
Version: 3.0.3-2
Severity: normal

Hi,

I installed the nagios3 package today, and instructed it to configure
the apache2 server.

My apache2 install by default denies all access to /, and allows access
to individual sites as appropriate.  The nagios3 config file,
/etc/nagios3/apache2.conf, contains the stanza:
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3)>
which causes most of nagios to work, however, the stylesheets in
/etc/nagios3/stylesheets are not included in this, so apache2 refuses to
serve them.

Changing the DirectoryMatch to include /etc/nagios3/stylesheets with:
<DirectoryMatch
(/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
seems to solve this problem.

It would be nice if this change could be made to the apache2.conf,
especially as the apache2 package suggests that this denying access to /
by default will become standard after lenny.

Thanks!

Michael

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (700, 'testing'), (601, 'unstable'), (50, 'stable'), (9, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagios3 depends on:
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libgd2-xpm             2.0.36~rc1~dfsg-3 GD Graphics Library version 2
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libperl5.10            5.10.0-11.1       Shared Perl library
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  nagios3-common         3.0.3-2           support files for nagios3
ii  perl                   5.10.0-11.1       Larry Wall's Practical Extraction 
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

nagios3 recommends no packages.

Versions of packages nagios3 suggests:
pn  nagios-nrpe-plugin            <none>     (no description available)

-- debconf-show failed





More information about the Pkg-nagios-devel mailing list