[users@httpd] SetHandler rewrites URI used by Location?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 there a way to avoid the handler rewriting the URI that
Location uses? I'm using Apache 2.0.52 on a Scientific Linux system.

Cheers,
Andy

--
Andy Buckley: CEDAR @ IPPP, Durham
Work: www.cedar.ac.uk
www.insectnation.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux