I'm trying to use Puppet and a Nginx plugin to manage a virtual host config file. I have everything working, but now that I need to add some rewrite rules I'm running into issues.
I know I can use syntax like the line below to add a simple rule...
location_cfg_append => { 'rewrite' => '^ https://$server_name$request_uri? permanent' },
but I'm totally not getting how to use a slightly more complex set up such as
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}