Skip to content

Commit

Permalink
[#1] corrected the wrong when converting virtualhost.
Browse files Browse the repository at this point in the history
  • Loading branch information
lide-reed committed Aug 30, 2012
1 parent e274d22 commit 646e47a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,12 @@ static apn_module_t* process_server_config( apr_pool_t *p, server_rec *s)
if (addrs->host_addr->family == AF_INET) {
if (virthost && strcmp(virthost, "*") == 0 && host_port != 0) {
addr_list = apr_pstrcat( p, port, NULL);
} else if (virthost && strncmp(virthost, "_default_", sizeof("_default_")) == 0) {
if (host_port != 0) {
addr_list = apr_pstrcat( p, "*:", port, " default_server", NULL);
} else {
addr_list = apr_pstrcat( p, "* default_server", NULL);
}
} else if (virthost && host_port != 0) {
addr_list = apr_pstrcat( p, virthost, ":", port, NULL);
}
Expand Down

0 comments on commit 646e47a

Please sign in to comment.