Answer the question
In order to leave comments, you need to log in
How to configure nginx to return a specific file for a specific request?
There is such a site config (nginx):
server {
listen 111.111.111.111:80;
server_name site1.ru www.site1.ru;
root /var/www/site1.ru/www;
include snippets/fastcgi-php.conf;
}
server {
listen 111.111.111.111:80;
server_name site2.ru www.site2.ru;
return 301 $scheme://site1.ru/some-url;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question