I hope to locate the access logs of different UAs into different access_logs, but it seems that the access_log parameter is not allowed to be placed in the if.
I don't want to locate different requests to different locations through methods such as rewrite. How can I specify accesss_log based on UA in the same location?
It can be configured like this, there should be a better way to write it.