Ask for nginx address rewriting rules

request
http://xxx/sites/app/index.php?m=user&c=index&a=avatar&user_id=0F0993200F910338F0EE638EFDFA1779

when matching the address
http://xxx/sites/app/avatar/0F0993200F910338F0EE638EFDFA1779

the following doesn"t seem to work

location /sites/app/avatar/  {
   rewrite "^/sites/app/avatar/$"  $host/sites/app/index.php?m=user&c=index&a=avatar&user_id=$1;
}
Mar.28,2021

location /sites/app/avatar/  {
   rewrite /sites/app/avatar/(.*)  /sites/app/index.php?m=user&c=index&a=avatar&user_id=$1 last;
}

rewrite ^ / sites/app/avatar/ (. *) $/ sites/app?m=user&c=index&a=avatar&user_id=$1 last;

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea8e26-46991.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea8e26-46991.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?