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: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready