Varnish not purging via Magento 2 - throwing 403 Forbidden error - help please
John Risby
john at alcoholfree.co.uk
Sun Apr 3 20:56:31 CEST 2016
Hi Per,
Thanks for the reply.
I'm sorry, I missed off the first part of the log which is
* << Request >> 2
- Begin req 1 rxreq
- Timestamp Start: 1459708682.774223 0.000000 0.000000
- Timestamp Req: 1459708682.774223 0.000000 0.000000
- HttpGarbage "PURGE%00"
- ReqAcct 47 0 47 28 0 28
- End
* << Session >> 1
- Begin sess 0 HTTP/1
- SessOpen 127.0.0.1 54199 :80 127.0.0.1 80 1459708682.774100 18
- Link req 2 rxreq
- SessClose RX_JUNK 0.000
- End
I realised today that it was then accessing (or trying to)
/app/etc/config.php and that is what's throwing the 403.
I know this is more a Magento 2 question than a Varnish question but no one
has replied on the Magento forum.
So I guess there's two questions from this now.
1) What does the (newly posted) log data say is happening? It seems to
suggest there is a purge request but the cache doesn't seem to clear.
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?
Thanks
John
On 3 April 2016 at 19:47, Per Buer <perbu at varnish-software.com> wrote:
> Hi,
>
>
>
> On Sat, Apr 2, 2016 at 9:19 PM, John Risby <john at alcoholfree.co.uk> wrote:
>
>> (..)
>> But when I hit Flush Magento Cache in admin, whilst running varnishlog,
>> the log file says (amongst other things) - note, I've replaced my domain
>> with {MY_DOMAIN} and my server IP with {SERVER_IP}
>>
>> * << BeReq >> 32924
>> - Begin bereq 32923 pass
>> - Timestamp Start: 1459552787.509708 0.000000 0.000000
>> - BereqMethod POST
>> - BereqURL /app/etc/config.php
>> - BereqProtocol HTTP/1.1
>>
>
> You (Magento) are POSTing to /app/etc/config.php. You're not purging
> anything here.
>
> --
> *Per Buer*
> CTO | Varnish Software AS
> Cell: +47 95839117
> We Make Websites Fly!
> www.varnish-software.com
> <http://info.varnish-software.com/signature>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160403/20f321f3/attachment.html>
More information about the varnish-misc
mailing list