Getting this error: Starting nginx: [warn]: conflicting server namedomain2.com

Piotr Sikora piotr.sikora at frickle.com
Wed Mar 10 23:00:29 MSK 2010


> server {
> 
>            listen   80;
>            server_name  domain2.com;
>            rewrite ^/(.*) http://www.domain2.com/$1 permanent;
> 
>           }
> 
> 
> server {
> 
>            listen   80;
>            server_name domain2.com;

-            server_name domain2.com;
+            server_name www.domain2.com;

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >
 



More information about the nginx mailing list