Nginx rules how to set up?

under have Apache config like this (or rather .hataccess)
AddCharset UTF-8 .php
AddDefaultCharset Off
RewriteEngine on
RewriteBase /import/
#If in directory RewriteBase /directory_name/import/
RewriteCond $1 !^(system/application/robots\\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

it is necessary to alter under nginx

--------
tried using the Converter
nginx configuration
location /import/ {
if (!-e $request_filename){
rewrite ^/import/(.*)$ /import/index.php?/$1 break;
}
}

not earned
-------------

----------------------------
through another service
if ($1 !~ "^(system/application/robots\.txt)"){
set $rule_0 1$rule_0;
}
if (!-f $request_filename){
set $rule_0 2$rule_0;
}
if (!-d $request_filename){
set $rule_0 3$rule_0;
}
if ($rule_0 = "321"){
rewrite ^/(.*)$ /index.php?/$1 last;
}
--------------------
when restarting the server was yelling at zero. tried zeros to be replaced anyway.
where is the error ?
September 19th 19 at 12:31
1 answer
September 19th 19 at 12:33
Through the service winginx gives such code
# nginx configuration
charset off;
location /import/ {
if (!-e $request_filename){
rewrite ^/import/(.*)$ /import/index.php?/$1 break;
}
}

Find more questions by tags Nginx