Skip to content

Instantly share code, notes, and snippets.

@ratnose
Created January 6, 2021 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratnose/037e8c42c4f0ea064a1c2b7d3450fac3 to your computer and use it in GitHub Desktop.
Save ratnose/037e8c42c4f0ea064a1c2b7d3450fac3 to your computer and use it in GitHub Desktop.
admin@dockerhost:~$ curl https://office.domain.io
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
admin@dockerhost:~$ curl https://office.domain.io:9980
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
admin@dockerhost:~$ curl http://office.domain.io:9980
curl: (52) Empty reply from server
admin@dockerhost:~$ curl http://office.domain.io
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.18.0</center>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment