help,why not support *.abc.com

Igor Sysoev igor at sysoev.ru
Fri Dec 4 10:25:45 MSK 2009


On Fri, Dec 04, 2009 at 02:21:43AM -0500, FFCZ wrote:

> i know why this.
> 
> if set server_name  *.abc.com;
> 
> and set 
> 
> location ~.*\.(gif|jpg|jpeg|png|bmp|swf)$ {
>   valid_referers none blocked server_names *.abc.com *.google.com;
>   if ($invalid_referer) { return 403; }
> }
> 
> 
> it will be ": conflicting parameter "*.abc.com""
> 
> i del *.abc.com from valid_referers no problem.
> 
> thank you Dave Cheney
> 
> bug?

No, it's warning: server_names already includes *.abc.com, therefore,
you do not need to repeat it.


-- 
Igor Sysoev
http://sysoev.ru/en/




More information about the nginx mailing list