<div dir="ltr">Hi,<div><br></div><div>I am attaching the nginx file for your reference. Please guide me. Thanks in advance. </div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 8, 2022 at 1:38 PM Kaushal Shriyan <<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<br><br>I have a follow up question. when i run using Method PURGE I am encountering http 404 whereas when i run using Method GET.<br><br><u><b>404 Not Found</b></u></div><div dir="ltr"><b><u><br></u></b>#curl -vvv -X PURGE -I <a href="https://testnginxproxycachepurge.testintcraft.com/apis" target="_blank">https://testnginxproxycachepurge.testintcraft.com/apis</a><br>* About to connect() to <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a> port 443 (#0)<br>* Trying 34.105.141.181...<br>* Connected to <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a> (34.105.141.181) port 443 (#0)<br>* Initializing NSS with certpath: sql:/etc/pki/nssdb<br>* CAfile: /etc/pki/tls/certs/ca-bundle.crt<br> CApath: none<br>* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256<br>* Server certificate:<br>* subject: CN=<a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a><br>* start date: Apr 26 11:06:35 2022 GMT<br>* expire date: Jul 25 11:06:34 2022 GMT<br>* common name: <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a><br>* issuer: CN=R3,O=Let's Encrypt,C=US<br>> PURGE /apis HTTP/1.1<br>> User-Agent: curl/7.29.0<br>> Host: <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a><br>> Accept: */*<br>><br>< HTTP/1.1 404 Not Found<br>HTTP/1.1 404 Not Found<br>< Server: nginx/1.20.2<br>Server: nginx/1.20.2<br>< Date: Sun, 08 May 2022 08:01:55 GMT<br>Date: Sun, 08 May 2022 08:01:55 GMT<br>< Content-Type: text/html<br>Content-Type: text/html<br>< Content-Length: 153<br>Content-Length: 153<br>< Connection: keep-alive<br>Connection: keep-alive<br><br><<br>* Excess found in a non pipelined read: excess = 153 url = /apis (zero-length body)<br>* Connection #0 to host <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a> left intact<br><br><u><b>200 OK</b></u><br>#curl -vvv -X GET -I <a href="https://testnginxproxycachepurge.testintcraft.com/apis" target="_blank">https://testnginxproxycachepurge.testintcraft.com/apis</a><br>* About to connect() to <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a> port 443 (#0)<br>* Trying 34.105.141.181...<br>* Connected to <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a> (34.105.141.181) port 443 (#0)<br>* Initializing NSS with certpath: sql:/etc/pki/nssdb<br>* CAfile: /etc/pki/tls/certs/ca-bundle.crt<br> CApath: none<br>* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256<br>* Server certificate:<br>* subject: CN=<a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a><br>* start date: Apr 26 11:06:35 2022 GMT<br>* expire date: Jul 25 11:06:34 2022 GMT<br>* common name: <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a><br>* issuer: CN=R3,O=Let's Encrypt,C=US<br>> GET /apis HTTP/1.1<br>> User-Agent: curl/7.29.0<br>> Host: <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a><br>> Accept: */*<br>><br>< HTTP/1.1 200 OK<br>HTTP/1.1 200 OK<br>< Server: nginx/1.20.2<br>Server: nginx/1.20.2<br>< Date: Sun, 08 May 2022 08:01:43 GMT<br>Date: Sun, 08 May 2022 08:01:43 GMT<br>< Content-Type: text/html; charset=UTF-8<br>Content-Type: text/html; charset=UTF-8<br>< Transfer-Encoding: chunked<br>Transfer-Encoding: chunked<br>< Connection: keep-alive<br>Connection: keep-alive<br>< Cache-Control: max-age=21600, public<br>Cache-Control: max-age=21600, public<br>< Link: <<a href="https://testnginxproxycachepurge.testintcraft.com/apis" target="_blank">https://testnginxproxycachepurge.testintcraft.com/apis</a>>; rel="canonical"<br>Link: <<a href="https://testnginxproxycachepurge.testintcraft.com/apis" target="_blank">https://testnginxproxycachepurge.testintcraft.com/apis</a>>; rel="canonical"<br>< X-UA-Compatible: IE=edge<br>X-UA-Compatible: IE=edge<br>< Content-language: en<br>Content-language: en<br>< X-Content-Type-Options: nosniff<br>X-Content-Type-Options: nosniff<br>< X-Frame-Options: SAMEORIGIN<br>X-Frame-Options: SAMEORIGIN<br>< Permissions-Policy: interest-cohort=()<br>Permissions-Policy: interest-cohort=()<br>< Expires: Sun, 19 Nov 1978 05:00:00 GMT<br>Expires: Sun, 19 Nov 1978 05:00:00 GMT<br>< Vary: Cookie<br>Vary: Cookie<br>< X-XSS-Protection: 1; mode=block<br>X-XSS-Protection: 1; mode=block<br>< Strict-Transport-Security: max-age=31536000; includeSubDomains<br>Strict-Transport-Security: max-age=31536000; includeSubDomains<br>< Set-Cookie: ADRUM_BT=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/<br>Set-Cookie: ADRUM_BT=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/<br>< 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=/<br>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=/<br>< Last-Modified: Tue, 26 Apr 2022 14:39:40 GMT<br>Last-Modified: Tue, 26 Apr 2022 14:39:40 GMT<br>< ETag: "1650983980"<br>ETag: "1650983980"<br>< Access-Control-Allow-Origin: *<br>Access-Control-Allow-Origin: *<br>< X-Cache-Status: HIT<br>X-Cache-Status: HIT<br><br><<br>* Excess found in a non pipelined read: excess = 15395 url = /apis (zero-length body)<br>* Connection #0 to host <a href="http://testnginxproxycachepurge.testintcraft.com" target="_blank">testnginxproxycachepurge.testintcraft.com</a> left intact<br>#<br></div><div dir="ltr"><br></div><div>Please guide me. Thanks in advance. </div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div></div>
</blockquote></div>