Bug 52483 - Print JkOptions's options in log file and jkstatus page
Summary: Print JkOptions's options in log file and jkstatus page
Status: NEW
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: mod_jk (show other bugs)
Version: 1.2.32
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 12:21 UTC by Domenico Briganti
Modified: 2014-12-29 13:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Domenico Briganti 2012-01-18 12:21:00 UTC
Is useful to me to check that server at runtime properly takes JkOtions argument.
Comment 1 Rainer Jung 2014-12-29 13:03:17 UTC
I currently do not plan to implement the status worker part of this feature.

We do have quite a few config items in mod_jk for the Apache web server on top of worker properties and mapping. JkOptions is only a little bit special, so if we are going to add more config info to the status worker, I think we should add most of these items there. That would make the page huge, so for the HTML page, it should be a separate page. I hesitate to do the work now. Not only the work in the status worker, but also in the Apache web server part of the module to make the config accessible from the more generic status worker.

Not really difficult, but quite a bit of code and work. As always: patches welcome.

I'm not closing as WONTFIX and I'm interessted in more comments on this enhancement request.

See also BZ 49063.

I will ponder how to implment the logging part though (on debug log level). The code merging the JkOptions is non-trivial, so it could be helpful to dump the results like we do for other type of more complex configuration handling.
Comment 2 Rainer Jung 2014-12-29 13:53:59 UTC
I implemented the logging part in r1648345.

Example output:

[Mon Dec 29 14:42:54.226 2014] [5541:1] [debug] dump_options::mod_jk.c (676): JkOption 'ForwardURIProxy' set in server 'myserver.example.com' (default)
[Mon Dec 29 14:42:54.226 2014] [5541:1] [debug] dump_options::mod_jk.c (696): JkOption 'ForwardKeySize' set in server 'myserver.example.com' (default)
[Mon Dec 29 14:42:54.226 2014] [5541:1] [debug] dump_options::mod_jk.c (724): JkOption 'CollapseSlashesUnmount' set in server 'myserver.example.com' (default)

Regards,

Rainer