Bug in NginxHttpRefererModule?

Maxim Dounin mdounin at mdounin.ru
Wed Apr 21 13:03:52 MSD 2010


Hello!

On Wed, Apr 21, 2010 at 03:00:12PM +0700, Alexey wrote:

> 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;

Directive valid_referers doesn't support variables.

Maxim Dounin



More information about the nginx-devel mailing list