Project

General

Profile

Actions

Bug #852

closed

when url_rewrite is used with mod_cml_lua rewritten URL query string is not accessible from LUA

Added by Anonymous over 17 years ago. Updated 4 months ago.

Status:
Fixed
Priority:
Normal
Category:
mod_cml
Target version:
-
ASK QUESTIONS IN Forums:
No

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

mod_cml_lua_orig_url.diff (815 Bytes) mod_cml_lua_orig_url.diff patch -- lord Anonymous, 2006-09-19 04:23
Actions #1

Updated by jan over 17 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.

Actions #2

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Wontfix
Actions #3

Updated by gstrauss 4 months 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

Actions

Also available in: Atom