Answer the question
In order to leave comments, you need to log in
Why is nginx displaying the wrong domain?
Good evening.
I have nginx and php-fpm on my server.
I started setting up nginx, wrote 2 configs, they look something like this:
aaa.conf
server {
listen 80;
server_name aaa.ru
.....
}
server {
listen 80;
server_name bbb.ru
.....
}
server {
listen 80;
server_name domain.bbb.ru
.....
}
Answer the question
In order to leave comments, you need to log in
Finish aaa.
server {
listen 80;
server_name aaa.ru *.aaa.ru
.....
}
server {
listen 80;
server_name domain.bbb.ru
.....
}
server {
listen 80;
server_name bbb.ru *.bbb.ru
.....
}
}
server {
listen 80 default_server;
server_name example.net www.example.net;
root на_страницу приветствия или заглушку
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question