modified nginx/mobile-detect template