Bug in NginxHttpRefererModule?

Alexey aaa at cn.ru
Wed Apr 21 12:00:12 MSD 2010


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




More information about the nginx-devel mailing list