> In most cases, $server_name is the variable you want. Thanks so much. Works like a charm. This simplifies my configuration/maintenance a lot. Best! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280353,280360#msg-280360