So I just got a rough draft going with this:
map_hash_max_size 262144;
map_hash_bucket_size 262144;
map $http_host $new {
'prefix1.domain.com' '1';
'prefix2.domain.com' '2';
}
server {
listen 80;
if ($new = '1') {
rewrite ^(.*) http://prefix1.domain.com:8080 redirect;
}
if ($new = '2') {
rewrite ^(.*) http://prefix2.domain.com:7080 redirect;
}
}
I'm having issues logging into those servers, since it appears to just load the login page for both over and over again. Any ideas?
map_hash_max_size 262144;
map_hash_bucket_size 262144;
map $http_host $new {
'prefix1.domain.com' '1';
'prefix2.domain.com' '2';
}
server {
listen 80;
if ($new = '1') {
rewrite ^(.*) http://prefix1.domain.com:8080 redirect;
}
if ($new = '2') {
rewrite ^(.*) http://prefix2.domain.com:7080 redirect;
}
}
I'm having issues logging into those servers, since it appears to just load the login page for both over and over again. Any ideas?