<div dir="ltr">What are you using as your origin?<div><br></div><div>Let's say you're using Nginx. You'd:</div><div><br></div><div>- install the RealIpModule in Nginx</div><div>- set a custom header in VCL to be the output of the RealIpModule</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 November 2014 16:19, Tobias Karlsson <span dir="ltr"><<a href="mailto:tokar93@gmail.com" target="_blank">tokar93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi<br><br></div>When i have Cloudflare activated all visitors that is forwarding to my server behind the varnish get the Varnish server ip instead of the own. What should i do to fix that? When i turn off Cloudflare i dont have this problem. <br><br></div>This is my VLC file: <a href="https://gist.github.com/tokar86a/7936afeb12b58ea77692" target="_blank">https://gist.github.com/tokar86a/7936afeb12b58ea77692</a> <br><div><br clear="all"><div><div><div><div><div>MVH<span class="HOEnZb"><font color="#888888"><br>Tobias</font></span></div></div>
</div></div></div></div></div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Kind regards,<div><br></div><div>Andrew Langhorn</div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: +44 (0)7810 737375</div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div>
</div>