Fixed problem with ip addresses when behind varnish server