// 如果 GET 请求的 shop 参数为空,则设置默认值: www.02405.com
map $arg_shop $get_shop {
  "" "www.02405.com";
  default $arg_shop;
}

server
{
    listen 80;
    server_name example.com;
    index index.html;
    root /www/wwwroot/example.com;

    location {
      // 使用变量
      add_header X-Shop $get_shop;
    }
}

说明:$arg_shop 表示请求中的 shop 参数。

(adsbygoogle = window.adsbygoogle || []).push({});