Skip to content

how to use vars_combination #6749

Answered by soulbird
huang-x-h asked this question in Q&A
Discussion options

You must be logged in to vote

reference: https://github.com/apache/apisix/blob/master/docs/en/latest/admin-api.md#upstream

Related Instructions:

The following should be considered when setting the hash_on value:

  • When set to vars, a key is required. The value of the key can be any of the Nginx variables without the $ prefix.
  • When set to header, a key is required. This is equal to "http_key".
  • When set to cookie, a key is required. This key is equal to "cookie_key". The cookie name is case-sensitive.
  • When set to consumer, the key is optional and the key is set to the consumer_name captured from the authentication Plugin.
  • When set to vars_combinations, the key is required. The value of the key can be a combination of any…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by huang-x-h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants