Bug #852
closedwhen url_rewrite is used with mod_cml_lua rewritten URL query string is not accessible from LUA
Description
LUA REQUEST_URI variable contains now URI of orinial URL, before URL rewrting. So if URL rewriting is used, and query string is formed duing rewrting there is no way to access it from LUA. For example, this would not work:
url.rewrite = ("^/user/(A-Za-z0-9\_+)$" => "/test.cml?user=$1")
since in LUA, you will not be able to access 'user' parameter.
More details in forum discussion:
http://forum.lighttpd.net/topic/1745
Attached is a patch which makes both oritinal and rewritten URIs avaliable to LUA.
-- lord
Files
Updated by jan over 18 years ago
- Status changed from New to Fixed
- Resolution set to wontfix
Please check mod_magnet in the upcoming 1.4.12. It gives you access to all internal variables including the pre- and post-rewrite variables and the query-string.
Updated by gstrauss about 1 year ago
- Description updated (diff)
- Status changed from Wontfix to Fixed
- ASK QUESTIONS IN Forums set to No
mod_cml is no longer part of the lighttpd base
For replacement, see lua mod_cml
For much more powerful features, review all the features of mod_magnet
Also available in: Atom