Attempting to convert wp-login.php redirect form apache to nginx

Solution:

I found the solution at the bottom of this page.

I am now using Rename wp-login.php with the following code in my nginx conf file:

location = /renamedloginurl/ {
try_files $uri $uri/ /index.php?q=$request_uri;
}