Nginx config for craft working for everything but admin url's
Try adding specific location for admin &amp; cpresources in the nginx config

location ^~ /admin {
    try_files $uri $uri/ /index.php?$query_string;
}
location ^~ /cpresources {
    try_files $uri $uri/ /index.php?$query_string;
}


before

location ~ [^/]\.php(/|$) {