[Solved]Reverse conditional on host?


Hello guys, I am looking for a way to make reverse proxy work in this way:
If user visits domainA.com reverse proxy domainB.com
If user visits domainA2.com reverse proxy domainB2.com

What would be the best way to achieve this?



I would appreciate if You guys could help me out :slight_smile:


Once again nobody would bother helping out, I’ve figured it out myself, it’s strange how a complicated questions always get many responses on this forum, while simple ones are ignored.


can you post how you did it? maybe someone else will have this question in the future