Only works nginx with html pages