Project

General

Profile

Feature #2840

accesslog.format remote_port

Added by FilipeCifali 2 months ago. Updated 2 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_accesslog
Target version:
Start date:
2017-11-17
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

Hi,

I need to store the remote_port in the accesslog, the docs don't provide a proper way to do this here:

https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAccesslog

Searching for remote_port the only code I find in the source:

$ grep REMOTE_PORT * -R
NEWS: * added REMOTE_PORT and SERVER_ADDR to CGI-env
src/http-header-glue.c: rc |= cb(vdata, CONST_STR_LEN("REMOTE_PORT"), buf, strlen(buf));
src/server.c: * NCAT_REMOTE_ADDR NCAT_REMOTE_PORT

So I don't think this is build in the mod_accesslog, at least I didn't find it in the source code.

Does anyone know how to do this or knows a way to do it?

Both Apache and Nginx provides it but I would like to stick to Lighttpd.

Thanks in advance.

Associated revisions

Revision 9f02df2d (diff)
Added by gstrauss 2 months ago

[mod_accesslog] %{canonical,local,remote}p (fixes #2840)

x-ref:
"accesslog.format remote_port"
https://redmine.lighttpd.net/issues/2840

History

#1

Updated by gstrauss 2 months ago

  • Status changed from New to Patch Pending
  • Target version changed from 1.4.x to 1.4.49
#2

Updated by gstrauss 2 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom