Hello Nginx-devel, In "NginxHttpRefererModule" does not work $domain variable, which set in "server_name". code: server { server_name ~^(www\.)?(?P<domain>.+)$; location / { root /sites/$domain; } } location /photos/ { valid_referers none blocked $domain *.$domain; if ($invalid_referer) { return 403; } } -- Best regards, Alexey mailto:aaa at cn.ru