История изменений
Исправление beastie, (текущая версия) :
If is evil. ;) Use map:
map $http_host $ws_port {
default 8000;
.example.com 8001;
.example.net 8002;
}
proxy_pass $scheme://localhost:$ws_port;
Исправление beastie, :
If is evil. ;) Use map:
map $host $ws_port {
default 8000;
.example.com 8001;
.example.net 8002;
}
proxy_pass $scheme://localhost:$ws_port;
Исправление beastie, :
If is evil. ;) Use map:
map $host $ws_port {
default 8000;
.example.com 8001;
.example.net 8002;
}
proxy_pass $scheme://localhost:$ws_port;
Исправление beastie, :
If is evil. ;) Use map:
map $host $ws_port {
default 8000;
"example.com" 8001;
"example.net" 8002;
}
proxy_pass $scheme://localhost:$ws_port;
Исходная версия beastie, :
map $host $port {
default 8000;
"example.com" 8001;
"example.net" 8002;
}
proxy_pass $scheme://localhost:$port;