<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 28, 2020 at 2:29 PM Reinis Rozitis <<a href="mailto:r@roze.lv">r@roze.lv</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">> So either place it as first or add listen  443 default_server;<br>
<br>
By first I mean the "catch all" server { server_name _; .. } block.<br>
<br>
rr<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote><div><br></div><div>Hi Reinis,</div><div><br></div><div>I did follow your steps. My nginx.conf file is <a href="https://paste.centos.org/view/ae22889e">https://paste.centos.org/view/ae22889e</a> when I run the curl call, I am still receiving HTTP 200 OK response instead of HTTP 444 (No Response) as per the below output</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">#<b>curl --verbose --header 'Host: <a href="http://www.example.com/" target="_blank">www.example.com</a>' <a href="https://developer-nonprod.example.com/" target="_blank">https://developer-nonprod.example.com</a></b><br>> GET / HTTP/1.1<br>> Host: <a href="http://www.example.com/" target="_blank">www.example.com</a><br>> User-Agent: curl/7.64.1<br>> Accept: */*<br>><br>< HTTP/1.1 200 OK<br>< Server: nginx<br>< Content-Type: text/html; charset=UTF-8<br>< Transfer-Encoding: chunked<br>< Connection: keep-alive<br>< X-Powered-By: PHP/7.2.27<br>< Cache-Control: must-revalidate, no-cache, private<br>< Date: Fri, 28 Feb 2020 07:02:00 GMT<br>< X-Drupal-Dynamic-Cache: MISS<br>< X-UA-Compatible: IE=edge<br>< Content-language: en<br>< X-Content-Type-Options: nosniff<br>< X-Frame-Options: SAMEORIGIN<br>< Expires: Sun, 19 Nov 1978 05:00:00 GMT<br>< Vary:<br>< X-Generator: Drupal 8 (<a href="https://www.drupal.org/" target="_blank">https://www.drupal.org</a>)<br>< X-Drupal-Cache: MISS<br><</blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">#<b>curl --verbose --header 'Host: <a href="http://www.evil.com/" target="_blank">www.evil.com</a>' <a href="https://developer-nonprod.example.com/" target="_blank">https://developer-nonprod.example.com</a></b> <br>> GET / HTTP/1.1<br>> Host: <a href="http://www.evil.com/" target="_blank">www.evil.com</a><br>> User-Agent: curl/7.64.1<br>> Accept: */*<br>><br>< HTTP/1.1 200 OK<br>< Server: nginx<br>< Content-Type: text/html; charset=UTF-8<br>< Transfer-Encoding: chunked<br>< Connection: keep-alive<br>< X-Powered-By: PHP/7.2.27<br>< Cache-Control: must-revalidate, no-cache, private<br>< Date: Fri, 28 Feb 2020 06:59:41 GMT<br>< X-Drupal-Dynamic-Cache: MISS<br>< X-UA-Compatible: IE=edge<br>< Content-language: en<br>< X-Content-Type-Options: nosniff<br>< X-Frame-Options: SAMEORIGIN<br>< Expires: Sun, 19 Nov 1978 05:00:00 GMT<br>< Vary:<br>< X-Generator: Drupal 8 (<a href="https://www.drupal.org/" target="_blank">https://www.drupal.org</a>)<br>< X-Drupal-Cache: MISS<br><</blockquote></div><div><br></div><div><div>Thanks once again for all your help and I look forward to hearing from you.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div></div></div></div>