Check the same http_vhost on different Ports with different URI

Hi,
how can I check on the same http_vhost (Server) different Ports with different URI’s?

This doesn’t work :frowning:

vars.http_vhosts["Server_A"] = {
   http_uri = "/test_!"
   http_ssl="0"
   http_port = "123"
}
vars.http_vhosts["Server_A"] = {
   http_uri = "/test2"
   http_ssl="0"
   http_port = "345"
}

Hi,

the first definition gets overwritten by the second one because of the same (Server_A) key. Just use some different naming keys, e.g.:

vars.http_vhosts["Server_A_test"] = {
   http_uri = "/test_!"
   http_ssl="0"
   http_port = "123"
}
vars.http_vhosts["Server_A_test2"] = {
   http_uri = "/test2"
   http_ssl="0"
   http_port = "345"
}

Greetz

3 Likes

:innocent: right
Thx