adjusted nginx template to pass Apache host and user ip