www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Tutubalin <l...@lexa.ru>
Subject mod_proxy/1647: ProxyPass cannot 'pass' files with extensions covered by AddHandler
Date Sat, 10 Jan 1998 17:40:56 GMT

>Number:         1647
>Category:       mod_proxy
>Synopsis:       ProxyPass cannot 'pass' files with extensions covered by AddHandler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Jan 10 09:50:01 PST 1998
>Originator:     lexa@lexa.ru
>Release:        1.2.5
FreeBSD 2.2.5 RELEASE, GCC, but this bug is
not related to any particular software
Assume, we have following setup:

AddHandler server-parsed .shtml
ProxyPass /somedir  http://otherserver/somedir2

In this case, request to /somedir/file.html will be redirected
to http://otherserver/somedir2/file.html, but request to
/somedir/file.shtml will be handled locally (by server-parsed handler
in present case). I think, this behavior is not correct	
Add two lines from my sample setup to your httpd.conf
The problem is produced by mod_proxy and mod_mime interferention
I.e. proxy_trans() function sets request handler to 'proxy-server',
which is correct. Later (on type-checking stage) find_ct() (from
mod_proxy) tries to find handler for this type. If this check fails,
original handler (proxy-server) will restores, but if such handler
exists then it becomes 'The Only' handler.

I'm not an Apache architect, so I cannot propose how to fix this
behavior by right way
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message