tweaked fpm config and rewrite rules