Apache2: overlapping scriptalias

Bug #834672 reported by Thomas Schweikle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nagios3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

 * Restarting web server apache2
[Fri Aug 26 14:37:23 2011] [warn] The ScriptAlias directive in /etc/apache2/conf.d/nagios3.conf at line 7 will probably never match because it overlaps an earlier ScriptAlias.
 ... waiting [Fri Aug 26 14:37:24 2011] [warn] The ScriptAlias directive in /etc/apache2/conf.d/nagios3.conf at line 7 will probably never match because it overlaps an earlier ScriptAlias.
   ...done.

In /etc/apache2/conf.d/nagios3.conf:
# apache configuration for nagios 3.x
# note to users of nagios 1.x and 2.x:
# throughout this file are commented out sections which preserve
# backwards compatibility with bookmarks/config for older nagios versios.
# simply look for lines following "nagios 1.x:" and "nagios 2.x" comments.

ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
# nagios 1.x:
#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios3
#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3
# nagios 2.x:
#ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios3
#ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios3

# Where the stylesheets (config files) reside
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
# nagios 1.x:
#Alias /nagios/stylesheets /etc/nagios3/stylesheets
# nagios 2.x:
#Alias /nagios2/stylesheets /etc/nagios3/stylesheets

# Where the HTML pages live
Alias /nagios3 /usr/share/nagios3/htdocs
# nagios 2.x:
#Alias /nagios2 /usr/share/nagios3/htdocs
# nagios 1.x:
#Alias /nagios /usr/share/nagios3/htdocs

<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
        Options FollowSymLinks

        DirectoryIndex index.php index.html

        AllowOverride AuthConfig
        Order Allow,Deny
        Allow From All

        AuthName "Nagios Access"

        AuthType Basic
        AuthUserFile /etc/nagios3/htpasswd.users
        # nagios 1.x:
        #AuthUserFile /etc/nagios/htpasswd.users
        #require valid-user
</DirectoryMatch>

# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
# XXX This is not tested for nagios 2.x use at your own peril
#ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
# nagios 1.x:
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nagios3 3.2.3-1ubuntu1.2
ProcVersionSignature: Ubuntu 2.6.38-11.48-virtual 2.6.38.8
Uname: Linux 2.6.38-11-virtual x86_64
Architecture: amd64
Date: Fri Aug 26 14:36:43 2011
InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nagios3
UpgradeStatus: Upgraded to natty on 2011-05-21 (97 days ago)

Revision history for this message
Thomas Schweikle (tps) wrote :
Changed in nagios3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Schweikle (tps) wrote :

Seems fixed now

Changed in nagios3 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.