You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/12/15 17:58:57 UTC

DO NOT REPLY [Bug 40541] - SetHandler rewrites URI used by Location?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40541>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40541





------- Additional Comments From andy@insectnation.org  2006-12-15 08:58 -------
Making an Action which prints out the current environment gives these
environment variables (among others, of course) for a test URL of
http://test.insectnation.org/test.ex :

HTTP_HOST=test.insectnation.org
SCRIPT_FILENAME=/www/test/cgi/testhandler
REQUEST_URI=/handler/test.ex
SCRIPT_NAME=/test-cgi-bin/testhandler
PATH_INFO=/handler/test.ex
PATH_TRANSLATED=/www/test/handler/test.ex
SERVER_NAME=test.insectnation.org
REDIRECT_URL=/handler/test.ex

As above, I can successfully apply output filters to this script by a <Location>
applying to /test-cgi-bin, but not one which applies to /handler (which seems
more useful to me). If the environment is being used to determine the
application of <Location>, then the only variable which gets rewritten to point
at /test-cgi-bin is SCRIPT_NAME. I'd expect something like REQUEST_URI (or maybe
REDIRECT_URI) to be used instead (i.e. applying <Location> by request rather
than by whatever internal script handles it) ... any comments on this?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org