K
K
Konstantin Kruglov2016-12-15 11:48:08
Nginx
Konstantin Kruglov, 2016-12-15 11:48:08

How to prevent showing a random domain?

There are times when a domain in DNS points to a server on which the domain no longer exists. In this case, nginx shows the first domain from the list of existing domains on the server. How to prevent such behavior? If there is no domain, then let it give something like 403...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2016-12-15
@k0st1an

Configure "default_server" on the server and put a stub there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question