A
A
Alexander Karpov2016-11-03 09:16:52
linux
Alexander Karpov, 2016-11-03 09:16:52

nginx. What does the server_name _; entry mean?

I can not get the meaning of such an entry from the documentation. If it's not difficult, please tell me. Thank you.
1ea01a948e804969b6f04686b4579b15.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Slava Kryvel, 2016-11-03
@Inkognitoss

these characters are not allowed in a domain name, so they are used as the default name for all domains that nginx will process
in other words, if you write any string there that cannot be a domain name, then it will be equivalent to _
for example %, $, ^, &, §, !!??##@@ or any other that does not comply with rfc1034

V
Victor Taran, 2016-11-03
@shambler81

ac default

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question