Compose files, instructions and extras for using my automatic proxy containers
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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