sniproxy icon indicating copy to clipboard operation
sniproxy copied to clipboard

Domain and sub domain unable to work together

Open bilogic opened this issue 2 years ago • 2 comments
trafficstars

My config

table https_hosts {
    my.example.com 192.168.214.102:8123
    .*\\.my\\.example\\.com 192.168.214.102:443
}

If I load https://test.my.example.com, it goes to 8123 If I swap the 2 lines, https://my.example.com occasionally goes to 443

What am I missing?

bilogic avatar Nov 13 '23 04:11 bilogic

Maybe this answer is too late, but have you tried more precise regular expressions? For example: ^my\.example\.com (where ^ matches the beginning of line).

dashohoxha avatar Jan 07 '25 14:01 dashohoxha

thanks no I did not, but instead switched to HA proxy.. haha

bilogic avatar Jan 07 '25 14:01 bilogic