Default site configured for 444 returns 404

Steinar Bang sb at dod.no
Sun Aug 25 20:33:22 UTC 2024


Found something!

If I use https with the IP number and ignore the certificate errors
caused by there being no certificate that matches the IP number, then I
get a 200 OK (or presumably 404 as I've seen for some addresses).

sb at marquez:~$ curl -svk https://<server's IPv4 address>/
*   Trying <server's IPv4 address>:443...
* Connected to <server's IPv4 address> (<server's IPv4 address>) port 443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=www.bang.priv.no
*  start date: Jul  3 23:25:10 2024 GMT
*  expire date: Oct  1 23:25:09 2024 GMT
*  issuer: C=US; O=Let's Encrypt; CN=R11
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
* using HTTP/1.1
> GET / HTTP/1.1
> Host: <server's IPv4 address>
> User-Agent: curl/7.88.1
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/1.1 200 OK
< Server: nginx/1.22.1
< Date: Sun, 25 Aug 2024 20:28:48 GMT
< Content-Type: text/html
< Content-Length: 864
< Last-Modified: Thu, 27 Aug 2020 16:54:00 GMT
< Connection: keep-alive
< ETag: "5f47e528-360"
< Accept-Ranges: bytes
< 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<html>
  <head>
    <title>Familien Bangs eget web-domene</title>
  </head>
  <body>
    <h1>Familien Bangs eget web-domene</h1>

    <p>Jada.  Hehe!  Men hvis resten av familien vil ha noen linker
      herfra, s� m� de nok komme krypende til meg og sp�rre pent.
      Forel�pig er jeg den eneste her.</p>

    <ul>
      <li><a href="https://steinar.bang.priv.no">Steinar Bangs blogg</a></li>
      <li><a href="sb/"><em>Historiske sider for Steinar Bang (sider fra 1994-1999)</em></a></li>
      <li><a href="sb/pics/"><em>Bildearkiv fra 1990-tallet</em></a></li>
      <li><a href="https://oldalbum.bang.priv.no"><em>Ny versjon av bildearkiv fra 1990-tallet</em></a></li>
    </ul>

    <hr>
    <address>
      <a href="mailto:webmaster at bang.priv.no">webmaster at bang.priv.no</a>
    </address>
  </body>
</html>
* Connection #0 to host <server's IPv4 address> left intact
sb at marquez:~$


More information about the nginx mailing list