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

           Summary: SetHandler rewrites URI used by Location?
           Product: Apache httpd-2
           Version: 2.0.52
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_actions
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I'm using a couple of scripts to do pre-processing of files with
certain file extensions and then wrapping the output in a
SetOutputFilter chosen according to the URL. Example:

## ReStructuredText handler
ScriptAlias /test-cgi-bin/ /cedar/testlocal/cgi-bin/
Action rst-handler /test-cgi-bin/rst-filter
AddHandler rst-handler .rst

## /foo contains .rst files
<Location /foo>
  SetOutputFilter blah
</Location>

This seems not to work: the RST handler processes the RST into HTML
nicely but then the location isn't matched, because the handler changes
the URI (I'm not sure which variable gets read to do this). I can fix
it for this example by adding this:

<Location /test-cgi-bin>
  SetOutputFilter blah
</Location>

but this is pretty ugly and probably not flexible enough for me in
general. Is this really intentional, and if so is there a work-around?

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to