Klaus Demo nginx / 8dbc8a9
server_name $hostname Igor Sysoev 11 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
36813681 sn->regex = NULL;
36823682 #endif
36833683 sn->server = cscf;
3684 sn->name = value[i];
3684
3685 if (ngx_strcasecmp(value[i].data, (u_char *) "$hostname") == 0) {
3686 sn->name = cf->cycle->hostname;
3687
3688 } else {
3689 sn->name = value[i];
3690 }
36853691
36863692 if (value[i].data[0] != '~') {
36873693 ngx_strlow(sn->name.data, sn->name.data, sn->name.len);