<div dir="ltr"><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px">Ok, I've found a workaround to this problem on another forum.</p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><br></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px">For anyone else with the same problem, see the post by <span style="line-height:1.2">davidalger at <a href="https://www.bountysource.com/issues/29113272-no-varnish-purge-request-from-nginx">https://www.bountysource.com/issues/29113272-no-varnish-purge-request-from-nginx</a></span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2"><br></span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2">This fixes it. Basically the server path isn't being set properly and this code fixes it. Hopefully (presumably?) it will be added to the core codebase a some point.</span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2"><br></span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2">That solves the main problem of the varnish cache not clearing from the Magento 2 admin, but I'm still unsure why /app/etc/config.php is being requested after that. </span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2"><br></span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2">So basically it's a Magento problem, not a Varnish problem. Thanks for your help.</span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2"><br></span></p><p style="margin:0px;padding:0px;color:rgb(49,48,43);font-family:'Open Sans',Arial;font-size:12px;line-height:18px"><span style="line-height:1.2">Thanks</span></p><div><span style="line-height:1.2"><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 April 2016 at 09:59, John Risby <span dir="ltr"><<a href="mailto:john@alcoholfree.co.uk" target="_blank">john@alcoholfree.co.uk</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">Great, thanks Per. That's helped narrow it down. I'll check the Magento code and see what it is doing. Should hopefully be simple to fix.<div><br></div><div>Don't worry about the second bit, as long as it purges the cache, that's the main thing.</div><div><br></div><div>Thank you</div><span class="HOEnZb"><font color="#888888"><div>John</div></font></span><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 April 2016 at 09:57, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Apr 3, 2016 at 8:56 PM, John Risby <span dir="ltr"><<a href="mailto:john@alcoholfree.co.uk" target="_blank">john@alcoholfree.co.uk</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">Hi Per,<div><br></div><div>Thanks for the reply. </div><div><br></div><div>I'm sorry, I missed off the first part of the log which is</div><div><br></div><div><div>* << Request >> 2</div><div>- Begin req 1 rxreq</div><div>- Timestamp Start: 1459708682.774223 0.000000 0.000000</div><div>- Timestamp Req: 1459708682.774223 0.000000 0.000000</div><div>- HttpGarbage "PURGE%00"</div><div>- ReqAcct 47 0 47 28 0 28</div><div>- End</div></div></div></blockquote><div><br></div><div><br></div></span><div>Magento does something weird here. It says PURGE and then a null character. It should be something PURGE /... HTTP/1.1.</div><div><br></div><div>So check the magento config or the code that issues the purge.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>(..)</div><span><div>2) It's then trying to access /app/et/config.php but failing and returning 403. My vcl is generated from the Magento admin backend so should be right and the admin page where I'm flushing the cache is being accessed from https anyway, so shouldn't that mean it is totally ignored? This is a test server, so no one else is accessing the site and this request is consistent every time I hit Flush Magento Cache on the backend. Any idea why it is trying/failing to access this file?</div></span></div></blockquote><div><br></div><div>No, I don't. I don't know Magento. :-/</div></div><span><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><table border="0" cellpadding="0" cellspacing="0" style="border-bottom-width:1px;padding-top:5px;border-top-style:solid;width:550px;padding-bottom:5px;border-bottom-color:rgb(238,238,238);border-top-width:1px;border-bottom-style:solid;line-height:1.5em;border-top-color:rgb(238,238,238);color:rgb(102,102,102);font-size:12px;font-family:'Helvetica Neue',Arial,sans-serif;margin-top:20px"><tbody><tr><td width="100"><img src="http://www.varnish-software.com/static/media/logo-email.png"></td><td><font color="#222222"><span style="font-size:14px"><b>Per Buer</b></span></font><br>CTO | Varnish Software AS<br>Cell: <a value="+4790181750" style="color:rgb(17,85,204)">+47 95839117</a><br><span style="font-weight:bold">We Make Websites Fly!<br><a href="https://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank">www.varnish-software.com</a></span></td></tr></tbody></table><br><div style="color:rgb(136,136,136)"><a href="http://info.varnish-software.com/signature" target="_blank"><img src="http://files.varnish-software.com/signature.png"></a><br></div></div></div></div></div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>
</div></div></div></div>
</blockquote></div><br><br>
</div></div>