location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_read_timeout 300;
try_files $uri = @missing;
}
location @missing {
rewrite ^ $scheme://blabla.ru permanent;
}
Оказалось очень просто