Project

General

Profile

Actions

Feature #787

closed

mod_cml + "HOST" header support!

Added by Anonymous over 18 years ago. Updated about 1 year ago.

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

Description

lighttpd developers hello, again...

I use lighttpd-1.4.11 in production with mod_cml.

this code simply adds the "HOST" header to the "reqeust" table.
making "HOST" header accessible from lua scripts.

Lua Programming:

host = request !["HOST"]

tags/lighttpd-1.4.11/src/mod_cml_lua.c:273


c_to_lua_push(L, header_tbl, CONST_STR_LEN("HOST"), CONST_BUF_LEN(con->request.http_host));

thanks,
-- amix.

-- duke.amix

Actions #1

Updated by stbuehler over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix

mod_cml is deprecated.

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Wontfix
Actions #3

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

lighty.r.req_header["host"]
lighty.r.req_attr["uri.authority"]

Actions

Also available in: Atom