Hi @Lax :
I did the following there points Pls review the code, and thx.
make the http_accounting_id directive support on the location of the if context.
may be it's useful for this:
location / {
# for pc
http_accounting_id accounting_id_pc;
# for mobile
if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry)') {
http_accounting_id accounting_id_mobile;
}
...
}
Hi @Lax : I did the following there points Pls review the code, and thx. make the
http_accounting_id
directive support on the location of the if context. may be it's useful for this: