Once upon a time, Jeffrey Walton <noloa...@gmail.com> said:
> Re, the info about a fake server:
> 
>     As a workaround, configure a fake server that is never used but is
>     just a decoy for httpd to associate with the default server
>     configured in /etc/httpd/conf.d/ssl.conf...
> 
>     ServerName  neverused.org
> 
> IANA reserves example.com for this sort of thing. I strongly encourage
> you to use the reserved name.

example.com is not supposed to go in real systems, it's more for
documentation and such.

I'm not very familiar with Apache anymore, as I rarely touch have to
touch it, but with nginx, I do this on Internet-accessible servers:

    server {
        server_name "";
        listen 80 default_server;
        listen [::]:80 default_server;
        return 404;
    }
    server {
        server_name "" _;
        listen 443 ssl http2 default_server;
        listen [::]:443 ssl http2 default_server;
        ssl_reject_handshake on;
        return 404;
    }

-- 
Chris Adams <li...@cmadams.net>
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to