WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
> Hi to the list,
> I would like to be able to dump an authenticated user name in the access
> logs. The problem is: in our application, the user name is fetched from a
> cookie hash using yaws_session_server. That means we cannot use the 'real'
> authorization header, and arg_rewrite_mod acts too late for this purpose.
> I made a quick patch to use a custom module in order to fill the
> 'authorization' structure from a cookie :
> https://github.com/nthauvin/yaws/commit/840ee7021b1b3fca751661637cad3e3b7bd7f697 >
> I am not really sure this is an appropriate way to do this. Any advice ?
If it is just about logging, a solution is to write your own logger.
This feature is not well documented but there are some information in
the manpage of yaws.conf.
Of course, in this module, you can call the default logger of Yaws.