Fixed HTTP request logging when in production mode

Now logging the proper remote address, taken from the X-Forwarded-For header.