Restart nginx before curling localhost