Forum Discussion

Seth_Kusiak_855's avatar
Seth_Kusiak_855
Icon for Nimbostratus rankNimbostratus
Sep 29, 2008

Setting variables based on calling VS

Hello,

 

 

I’m wondering if it’s possible to set variables by determining the calling virtual server. For example, If the calling VS is named App1, I want to set a variable to "App1". If the calling VS is App2, then I’d like to set it to "App2", etc. Is this possible? if so, how?

 

 

Thank you,

 

 

Seth

1 Reply

  • Hi Seth,

     

     

    It's not the cleanest solution, but it works... (Click here)

     

     

    You could replace the rule prefix in that example with [virtual] for 9.3.x or [virtual name] in 9.4+ to get the VIP name.

     

     

    Aaron