# Conflicting server name "" on 0.0.0.0:80, ignored

**URL:** <https://www.ruby-forum.com/t/conflicting-server-name-on-0-0-0-0-80-ignored/212314>\
**Category:** NGINX\
**Created:** [September 29, 2011, 12:19pm UTC](https://www.ruby-forum.com/t/conflicting-server-name-on-0-0-0-0-80-ignored/212314 "2011-09-29T12:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 29, 2011, 12:19pm UTC](https://www.ruby-forum.com/t/conflicting-server-name-on-0-0-0-0-80-ignored/212314/1 "2011-09-29T12:19:37Z")

</div>

Hello,

I have an Ubuntu for drupal development with 2+1 local domain. I putted  
2 domain name to my hosts file, I have the default and two similar  
configuration files in my sites-enabled folder:

–  
server {  
if ($request\_method !~ ^(GET|HEAD|POST)$ ) {  
return 444;  
}

root /home/sajt/Projectek/eupharma/htdocs;  
index index.php  
server\_name eupharmaltd;  
location / {  
# First attempt to serve request as file, then  
# as directory, then fall back to index.html  
try\_files $uri $uri/ /index.html;  
}  
location ~ .php$ {  
fastcgi\_pass 127.0.0.1:9000; # By all means use a different  
server for the fcgi processes if you need to  
fastcgi\_index index.php;

```
#fastcgi_param SCRIPT_FILENAME

```

## /path/to/drupal$fastcgi\_script\_name; # !! \<— Another path reference for you. include /etc/nginx/fastcgi\_params; } if (!-e $request\_filename) { rewrite ^/(.\*)$ /index.php?q=$1 last; break; } }

The difference is only the root and the server\_name. I get the following  
error:

Restarting nginx: [warn]: conflicting server name “” on 0.0.0.0:80,  
ignored

And when I try to access the all domain is showing the same page. The  
default is working fine.

Thanks for answers

Tamas

Posted at Nginx Forum:

> **[conflicting server name "" on 0.0.0.0:80, ignored](https://forum.nginx.org/read.php?2,216017,216017#msg-216017)**
>
> Hello, I have an Ubuntu for drupal development with 2+1 local domain. I putted 2 domain name to my hosts file, I have the default and two similar configuration files in my sites-enabled folder: -- server { if ($request\_method !~ ^(GET|HEAD|POST)$ ) {...
