On Wed, May 3, 2023 at 2:25 PM Chris Adams <li...@cmadams.net> wrote:
>
> 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;
>     }

Would Apache accept example.local or example.localdomain with the
appropriate hosts change? This Q&A seems to indicate it is allowed.[1]
It also seems like it does not run afoul of Apache's ServerName
docs.[2]

My big concern is using a real domain name, like neverused.org. I
don't believe IANA has reserved it. I know example.com is reserved.[3]
The worst case for example.com is, something breaks locally on his
machine.

[1] https://stackoverflow.com/a/12980008
[2] https://httpd.apache.org/docs/2.4/mod/core.html#servername
[3] https://www.iana.org/domains/reserved

Jeff
_______________________________________________
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