Hi, I am attaching the nginx file for your reference. Please guide me. Thanks in advance.
Best Regards, Kaushal Best Regards, Kaushal On Sun, May 8, 2022 at 1:38 PM Kaushal Shriyan <kaushalshri...@gmail.com> wrote: > Hi, > > I have a follow up question. when i run using Method PURGE I am > encountering http 404 whereas when i run using Method GET. > > *404 Not Found* > > #curl -vvv -X PURGE -I > https://testnginxproxycachepurge.testintcraft.com/apis > * About to connect() to testnginxproxycachepurge.testintcraft.com port > 443 (#0) > * Trying 34.105.141.181... > * Connected to testnginxproxycachepurge.testintcraft.com (34.105.141.181) > port 443 (#0) > * Initializing NSS with certpath: sql:/etc/pki/nssdb > * CAfile: /etc/pki/tls/certs/ca-bundle.crt > CApath: none > * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 > * Server certificate: > * subject: CN=testnginxproxycachepurge.testintcraft.com > * start date: Apr 26 11:06:35 2022 GMT > * expire date: Jul 25 11:06:34 2022 GMT > * common name: testnginxproxycachepurge.testintcraft.com > * issuer: CN=R3,O=Let's Encrypt,C=US > > PURGE /apis HTTP/1.1 > > User-Agent: curl/7.29.0 > > Host: testnginxproxycachepurge.testintcraft.com > > Accept: */* > > > < HTTP/1.1 404 Not Found > HTTP/1.1 404 Not Found > < Server: nginx/1.20.2 > Server: nginx/1.20.2 > < Date: Sun, 08 May 2022 08:01:55 GMT > Date: Sun, 08 May 2022 08:01:55 GMT > < Content-Type: text/html > Content-Type: text/html > < Content-Length: 153 > Content-Length: 153 > < Connection: keep-alive > Connection: keep-alive > > < > * Excess found in a non pipelined read: excess = 153 url = /apis > (zero-length body) > * Connection #0 to host testnginxproxycachepurge.testintcraft.com left > intact > > *200 OK* > #curl -vvv -X GET -I > https://testnginxproxycachepurge.testintcraft.com/apis > * About to connect() to testnginxproxycachepurge.testintcraft.com port > 443 (#0) > * Trying 34.105.141.181... > * Connected to testnginxproxycachepurge.testintcraft.com (34.105.141.181) > port 443 (#0) > * Initializing NSS with certpath: sql:/etc/pki/nssdb > * CAfile: /etc/pki/tls/certs/ca-bundle.crt > CApath: none > * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 > * Server certificate: > * subject: CN=testnginxproxycachepurge.testintcraft.com > * start date: Apr 26 11:06:35 2022 GMT > * expire date: Jul 25 11:06:34 2022 GMT > * common name: testnginxproxycachepurge.testintcraft.com > * issuer: CN=R3,O=Let's Encrypt,C=US > > GET /apis HTTP/1.1 > > User-Agent: curl/7.29.0 > > Host: testnginxproxycachepurge.testintcraft.com > > Accept: */* > > > < HTTP/1.1 200 OK > HTTP/1.1 200 OK > < Server: nginx/1.20.2 > Server: nginx/1.20.2 > < Date: Sun, 08 May 2022 08:01:43 GMT > Date: Sun, 08 May 2022 08:01:43 GMT > < Content-Type: text/html; charset=UTF-8 > Content-Type: text/html; charset=UTF-8 > < Transfer-Encoding: chunked > Transfer-Encoding: chunked > < Connection: keep-alive > Connection: keep-alive > < Cache-Control: max-age=21600, public > Cache-Control: max-age=21600, public > < Link: <https://testnginxproxycachepurge.testintcraft.com/apis>; > rel="canonical" > Link: <https://testnginxproxycachepurge.testintcraft.com/apis>; > rel="canonical" > < X-UA-Compatible: IE=edge > X-UA-Compatible: IE=edge > < Content-language: en > Content-language: en > < X-Content-Type-Options: nosniff > X-Content-Type-Options: nosniff > < X-Frame-Options: SAMEORIGIN > X-Frame-Options: SAMEORIGIN > < Permissions-Policy: interest-cohort=() > Permissions-Policy: interest-cohort=() > < Expires: Sun, 19 Nov 1978 05:00:00 GMT > Expires: Sun, 19 Nov 1978 05:00:00 GMT > < Vary: Cookie > Vary: Cookie > < X-XSS-Protection: 1; mode=block > X-XSS-Protection: 1; mode=block > < Strict-Transport-Security: max-age=31536000; includeSubDomains > Strict-Transport-Security: max-age=31536000; includeSubDomains > < Set-Cookie: ADRUM_BT=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; > Max-Age=0; path=/ > Set-Cookie: ADRUM_BT=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; > Max-Age=0; path=/ > < Set-Cookie: > ADRUM_BT=R%3A53%7Cg%3A5277dd0a-8de6-440a-a8f7-52fb782db251139%7Cn%3Aicebergtest_e1c60ae6-5d00-47d5-8c0a-690d8465795f; > expires=Sun, 08-May-2022 05:58:56 GMT; Max-Age=30; path=/ > Set-Cookie: > ADRUM_BT=R%3A53%7Cg%3A5277dd0a-8de6-440a-a8f7-52fb782db251139%7Cn%3Aicebergtest_e1c60ae6-5d00-47d5-8c0a-690d8465795f; > expires=Sun, 08-May-2022 05:58:56 GMT; Max-Age=30; path=/ > < Last-Modified: Tue, 26 Apr 2022 14:39:40 GMT > Last-Modified: Tue, 26 Apr 2022 14:39:40 GMT > < ETag: "1650983980" > ETag: "1650983980" > < Access-Control-Allow-Origin: * > Access-Control-Allow-Origin: * > < X-Cache-Status: HIT > X-Cache-Status: HIT > > < > * Excess found in a non pipelined read: excess = 15395 url = /apis > (zero-length body) > * Connection #0 to host testnginxproxycachepurge.testintcraft.com left > intact > # > > Please guide me. Thanks in advance. > > Best Regards, > > Kaushal >
nginxpurgecache.conf
Description: Binary data
_______________________________________________ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org