Welcome! Log In Create A New Profile

Advanced

Re: выбор бэкенда в зависимости от Host: заголовка

August 20, 2013 02:06AM
эх поторопился я... решение то простое совсем
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;
}
}
Subject Author Posted

выбор бэкенда в зависимости от Host: заголовка

daevy August 20, 2013 01:55AM

Re: выбор бэкенда в зависимости от Host: заголовка

daevy August 20, 2013 02:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready