Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106987 - Different AddHandler behaviour betwen net-www/apache-2.0.54-r15 and net-www/apache-2.0.54-r31
Summary: Different AddHandler behaviour betwen net-www/apache-2.0.54-r15 and net-www/a...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 05:23 UTC by Petr Lanc
Modified: 2005-09-26 05:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Lanc 2005-09-23 05:23:14 UTC
Hi, I upgrade apache from 2.0.54-r15 to 2.0.54-r31, and I take notice different
add-handler behaviour in old and new release of apache:
In my httpd.conf I have this AddHandler line:

AddHandler cgi-script fullname-of-script.xxx.yyy

After upgrade, this stop to work, and only with change this line to 

AddHandler cgi-script .yyy

it works. But I need, that fullname can be specified, because some other .yyy or
.xxx.yyy files must not be handled like cgi script.

I try this:

AddHandler cgi-script .xxx.yyy

but it didn't work too.

Why in older version it works, and in new releas it doesn't?

Reproducible: Always
Steps to Reproduce:

Actual Results:  
AddHandler recognize only last extension.

Expected Results:  
AddHandler can be specified as full script name, like in older versions.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -funroll-loops -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -mfpmath=sse -fomit-frame-pointer
-pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="POSIX"
LINGUAS="cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apm avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia
crypt eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib
jpeg libg++ libwww maildir mikmod mmx motif mp3 mpeg ncurses network nls nptl
nptlonly ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline
sdl slang spell sse ssl tcpd threads tiff truetype truetype-fonts type1-fonts
usb vorbis win32codecs xml2 xmms xv xvid zlib linguas_cs userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-23 17:37:41 UTC
There wasn't anything in the change that would affect how AddHandler works.
However the installation is more secure by default. Please make sure the
directory that contains the script to be run has Options ExecCGI - the only
directories that have this by default are the cgi-bin directories, and all files
in these directories are assumed to be an executable script.
Comment 2 Petr Lanc 2005-09-26 05:04:58 UTC
My apologize, it all by my obscurous configuration in more files. I made some
tests on fresh installed apache, and all is like you say. I'm sorry.