output an nginx config and write an index.php
reduce excessive newlines