Help,why not support *.abc.com

when i upgrade to 0.8.29

use -t to test config file, but return “: conflicting parameter
“*.abc.com””

i set “server_name www.abc.com;” and test is successful

but this problem not happen in 0.8.26 before

thank you!


configure arguments: --user=www --group=www --prefix=/usr/local/nginx
–with-http_stub_status_module

pcre-8.00 / Centos 5.2

Posted at Nginx Forum:

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 C.

bug?

Posted at Nginx Forum:

Can you post your complete config? Possibly there is a trailing or
missing ;

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

it will be “: conflicting parameter “*.abc.com””

i del *.abc.com from valid_referers no problem.

thank you Dave C.

bug?

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


Igor S.
http://sysoev.ru/en/