Welcome! Log In Create A New Profile

Advanced

Re: Purge the Nginx cache

All files from this thread

File Name File Size   Posted by Date  
nginxdefault.conf 5.1 KB open | download kaushalshriyan 04/26/2022 Read message
nginxpurge.conf 5.2 KB open | download kaushalshriyan 04/28/2022 Read message
nginxdefault.conf 5.1 KB open | download kaushalshriyan 05/03/2022 Read message
nginx.conf.bypass 5.4 KB open | download kaushalshriyan 05/03/2022 Read message
April 26, 2022 02:28PM
Hi Sergey,

I have gone through the document
https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/ to
purge nginx cache in nginx OSS version: nginx/1.20.2 as a reverse proxy
server on CentOS Linux release 7.9.2009 (Core). I encounter

nginx: [emerg] unknown directive "proxy_cache_purge" in
/etc/nginx/conf.d/default.conf:75
nginx: [emerg] unknown directive "proxy_cache_purge"

Please guide me. Thanks in advance.

Best Regards,

Kaushal

On Tue, Apr 26, 2022 at 11:28 PM Kaushal Shriyan <kaushalshriyan@gmail.com>
wrote:

> Hi Sergey,
>
> I have followed the document to purge nginx cache. Please find the details
> below. I am attaching the nginx config (nginxdefault.conf) file for
> your reference.
>
> curl -I https://testnginxproxycachepurge.testintcraft.com -H
> 'Cache-Purge: true'
> HTTP/1.1 200 OK
> Server: nginx/1.20.2
> Date: Tue, 26 Apr 2022 17:51:54 GMT
> Content-Type: text/html; charset=UTF-8
> Connection: keep-alive
> Cache-Control: max-age=21600, public
> Link: https://testnginxproxycachepurge.testintcraft.com/;
> rel="canonical", https://testnginxproxycachepurge.testintcraft.com/;
> rel="shortlink", https://testnginxproxycachepurge.testintcraft.com/home;
> rel="revision"
> X-UA-Compatible: IE=edge
> Content-language: en
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> Permissions-Policy: interest-cohort=()
> Expires: Sun, 19 Nov 1978 05:00:00 GMT
> Vary: Cookie
> X-XSS-Protection: 1; mode=block
> Strict-Transport-Security: max-age=31536000; includeSubDomains
> Set-Cookie:
> ADRUM_BT=R%3A0%7Cg%3A8eea40a7-2011-4692-acbb-84cf43e1d5ad30%7Cn%3Aicebergtest_e1c60ae6-5d00-47d5-8c0a-690d8465795f%7Ci%3A129601;
> expires=Tue, 26-Apr-2022 14:10:31 GMT; Max-Age=30; path=/
> Last-Modified: Tue, 26 Apr 2022 11:42:25 GMT
> ETag: "1650973345"
> Access-Control-Allow-Origin: *
>
> *X-Cache-Status: HIT*
>
> Instead of *Cache: BYPASS*, I see *X-Cache-Status: HIT *as the response.
> Please guide me. Thanks in advance.
>
> Best Regards,
>
> Kaushal
>
>
> On Fri, Apr 22, 2022 at 11:21 PM Kaushal Shriyan <kaushalshriyan@gmail.com>
> wrote:
>
>>
>>
>> On Fri, Apr 22, 2022 at 11:11 PM Sergey A. Osokin <osa@freebsd.org.ru>
>> wrote:
>>
>>> On Fri, Apr 22, 2022 at 10:56:27PM +0530, Kaushal Shriyan wrote:
>>> > On Fri, Apr 22, 2022 at 10:31 PM Sergey A. Osokin <osa@freebsd.org.ru>
>>> > >
>>> > > I'd recommend to follow the NGINX Admin Guide, please visit the
>>> following
>>> > > link
>>> > > for details,
>>> > >
>>> https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/
>>> >
>>> > Thanks Sergey for sharing the article. Is this
>>> >
>>> https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/
>>> > applicable to the OSS version of nginx web server. Please comment.
>>>
>>> I see nothing related to NGINX Plus, so you should try and report back.
>>>
>>> --
>>> Sergey A. Osokin
>>> _______________________________________________
>>> nginx mailing list -- nginx@nginx.org
>>> To unsubscribe send an email to nginx-leave@nginx.org
>>
>>
>> Thanks a lot Sergey and much appreciated !!! I will seek help if I get
>> into any issue.
>>
>> Best Regards,
>>
>> Kaushal
>>
>>
>>
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Purge the Nginx cache

kaushalshriyan April 22, 2022 12:38PM

Re: Purge the Nginx cache

Sergey A. Osokin April 22, 2022 01:02PM

Re: Purge the Nginx cache

kaushalshriyan April 22, 2022 01:32PM

Re: Purge the Nginx cache

Sergey A. Osokin April 22, 2022 01:42PM

Re: Purge the Nginx cache

kaushalshriyan April 22, 2022 01:56PM

Re: Purge the Nginx cache Attachments

kaushalshriyan April 26, 2022 02:02PM

Re: Purge the Nginx cache

kaushalshriyan April 26, 2022 02:28PM

Re: Purge the Nginx cache

Sergey A. Osokin April 26, 2022 04:44PM

Re: Purge the Nginx cache Attachments

kaushalshriyan April 28, 2022 03:30PM

Re: Purge the Nginx cache

kaushalshriyan April 29, 2022 02:20PM

Re: Purge the Nginx cache

kaushalshriyan May 02, 2022 03:10PM

Re: Purge the Nginx cache

Francis Daly May 03, 2022 04:30AM

Re: Purge the Nginx cache Attachments

kaushalshriyan May 03, 2022 06:34AM

Re: Purge the Nginx cache

Francis Daly May 03, 2022 08:02AM

Re: Purge the Nginx cache Attachments

kaushalshriyan May 03, 2022 12:22PM

Re: Purge the Nginx cache

Francis Daly May 04, 2022 09:10AM

Re: Purge the Nginx cache

Tammymeans May 17, 2022 08:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 205
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready