I made a simple url redirect script which works with sqlite but for some reason nginx and php-fpm is causing a deadlock, and this isn't first time seeing deadlock on script which uses single file to store data, so i need to switch to apache due this problem as apache does not have this problem.
But while apache regex can be easily converted to nginx regex by using online tools,
that's not a case when doing reverse convert.
So here is regex which i need to convert:
rewrite ^/out?$
http://bla.org/all.php?page=one&url=...a.php?page=two last;
rewrite ^/(.*)/(.*)$ /bla.php last;