Apache 2.4 scriptalias warning message

Bug #1476049 reported by Josh Stompro
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
2.10
Fix Released
Medium
Unassigned

Bug Description

EG 2.8.2
Debian Jessie

I've been getting an annoying message when I restart apache

[....] Restarting web server: apache2[Sun Jul 19 15:15:13.636827 2015] [alias:warn] [pid 17781]
AH00671: The Alias directive in /etc/apache2/sites-enabled/eg.conf at line 54 will probably never match
because it overlaps an earlier ScriptAlias.

Line 54 of eg.conf is
    51 # --------------------------------------------------------------------!
    52 # System config CGI scripts go here
    53 # --------------------------------------------------------------------!
    54 Alias /cgi-bin/offline/ "/openils/var/cgi-bin/offline/"
    55 <Directory "/openils/var/cgi-bin/offline">
    56 AddHandler cgi-script .cgi .pl
    57 AllowOverride None
    58 Options None
    59 Require host 192.168.0.0/16
    60 Options FollowSymLinks ExecCGI Indexes
    61 </Directory>

I think that the config in /etc/apache2/conf-enabled/serve-cgi-bin.conf that sets the global ScriptAlias is to blame. I don't think that is necessary for a running EG system, testing will show for sure.

a2disconf serve-cgi-bin

It should be easy enough to add that to the debian jessie makefile, if it fixed the issue with no side effects.

Josh

Revision history for this message
Ben Shum (bshum) wrote :

I've seen this error occur on Ubuntu 14.04 as well. I think it's a general Apache 2.4 issue.

Renaming this bug to be more generic and maybe tackle problem for both supported base Linux distributions.

tags: added: apache trusty
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
summary: - Debian Jessie scriptalias warning message
+ Apache 2.4 scriptalias warning message
Revision history for this message
Galen Charlton (gmc) wrote :

I can confirm that it's an issue for Xenial too.

Revision history for this message
Galen Charlton (gmc) wrote :

A patch is available at the tip of the user/gmcharlt/lp1476049_do_not_serve-cgi-bin branch in the working repository:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gmcharlt/lp1476049_do_not_serve-cgi-bin

Changed in evergreen:
milestone: none → 2.11-beta
tags: added: pullrequest xenial
Revision history for this message
Galen Charlton (gmc) wrote :

Also, a version of the patch just for rel_2_10 that only touches Jessie is available at the tip of the user/gmcharlt/lp1476049_do_not_serve-cgi-bin_rel_2_10 branch.

Revision history for this message
Mike Rylander (mrylander) wrote :

Picked into 2.10 and web client sprint-3 (accidentally, but, to be merged soon to master). Thanks, Galen!

Changed in evergreen:
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → 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.