turn off automatic redirect in nginx custom conf