misc nginx fixes