Citrix ADC 13 Advanced Topics – Security, Management and Optimization — Question 18
A Citrix Administrator needs to match the host name 'www.example.com' in all HTTP requests.
Which expression, when used, meets this requirement?
Answer options
- A. HTTP.REQ.HOSTNAME.EQ("www.example.com")
- B. HTTP.RES.HOSTNAME.EQ("www.example.com")
- C. HTTP.REQ.HOSTNAME("example.com")
- D. HTTP.RES.HOSTNAME.CONTAINS("www.example.com")
Correct answer: A
Explanation
The correct answer, A, checks if the request's hostname exactly matches 'www.example.com'. Option B is incorrect because it evaluates the response's hostname instead of the request's. Option C does not check for an exact match and is missing the 'www' prefix, while option D checks if the response's hostname contains the string but does not ensure an exact match.