polemictweet.test {
    tls internal
    root * /var/www/html

    @main path_regexp ^/(.+)/([0-9A-Za-z_-]+)\.php$
	@phpfile `file() && path('*.php')`

	rewrite /sitemap.xml /sitemap.php

	handle @phpfile {
	  php_fastcgi php-fpm:9000	
	}

    handle {
      root * /var/www/html
	  rewrite @main /{re.2}.php?rep={re.1}
      php_fastcgi php-fpm:9000
      file_server
    }

}