Variable for absolute requested url


I’m not sure if I’m missing something obvious here, but is there a
variable available that can be used in if conditions that has the entire
requested URL? This is, so you could have something like the following:

if ($url = “”) {


If not, is the best workaround to use the “set” directive to create a
new variable and then use that new variable in the if statement?
Something like:

set $url “$host$uri”;

Thanks for the help.