Welcome! Log In Create A New Profile

Advanced

conflicting server name "" on 0.0.0.0:80, ignored

September 29, 2011 06:18AM
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
Subject Author Posted

conflicting server name "" on 0.0.0.0:80, ignored

sajt September 29, 2011 06:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready