autoindex off;

charset utf-8;

autoindex off;

location / {
  if (!-e $request_filename){
    rewrite ^(.*)$ /index.php?action=$1 break;
  }
}