Compose files, instructions and extras for using my automatic proxy containers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. }