Compose files, instructions and extras for using my automatic proxy containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default-https.conf 644B

12345678910111213141516171819202122
  1. # Adds a default HTTPS server that returns a 421 response with no certificates
  2. # configured.
  3. #
  4. # This prevents Nginx from serving other sites when users make a request with
  5. # a hostname that is not recognised (e.g. they connect directly to the IP
  6. # address, or send deliberately incorrect requests). This behaviour results
  7. # in certificate errors and can leak details of "private" vhosts being served.
  8. #
  9. # This configuration will instead cause the browser to show an error (usually
  10. # "Connection closed" or similar).
  11. server {
  12. listen 443 ssl default_server;
  13. listen [::]:443 ssl default_server;
  14. server_name _;
  15. return 421;
  16. }