How to convert Apache rewrite rule to nginx

Hi

I have a RewriteRule in Apache :

RewriteCond %{QUERY_STRING} came_from=http(.*)

RewriteRule ^/(.*)login_form$
https://%{SERVER_NAME}/$1login_form?came_from=https%1 [NE,L]

Can somebody let me know the equivalent of the above apache rewrite
rule in nginx

Have you tried using something that would capture the header
information? E.g., $http_referer and such? The rules themselves aren’t
extremely tough, so you’ve probably solved this by now (:

Posted at Nginx Forum: