Answer the question
In order to leave comments, you need to log in
nginx. How to ban other domains?
I bought vps, raised nginx and the aaa.ru site,
apparently, this ip already belonged to someone and the bbb.com and ccc.net domains refer to it
how to make my site open when aaa.ru is opened, and the rest is a blank page or 403/404?
Thank you
Answer the question
In order to leave comments, you need to log in
More or less like this
server {
root /var/www/путь к заглушке/;
}
server {
server_name aaa.ru www.aaa.ru;
# Настройки вашего домена
}
server {
listen 80 default;
return 403;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question