Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: выбор бэкенда в зависимости от Host: заголовка
эх поторопился я... решение то простое совсем
server {
listen 80;
server_name node01.server.tld;
location / {
include /etc/nginx/proxy_headers.conf;
proxy_pass http://node01;
}
}
server {
listen 80;
server_name node02.server.tld;
location / {
include /etc/nginx/proxy_headers.conf;
proxy_pass http://node02;
}
}
server {
listen 80;
server_name *.server.tld;
location / {
include /etc/nginx/proxy_headers.conf;
proxy_pass http://all_servers;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,242040,242041#msg-242041
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|