Hello,
I would like to use rewriting of NGINX to parse a sort of dynamic URL looking like this:
http://my.server.com/x/<somedynamicpart>/z/page.html
to a static URL:
http://my.server.com/x/z/page.html
So the '<somedynamicpart>' is removed from the URL. BUT I need the '<somedynamicpart>' to be written to the logfile.
After rewriting the URL nginx logs serving the request 'http://my.server.com/x/z/page.html'. To this logline I would like to append an extra column (no extra logline preferably, because I would end up with 2 loglines about 1 request) containing the removed URL part.
Any suggestions on how to achieve this? Thx...