ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored


  • To: nginx-ru@xxxxxxxxx
  • Subject: [warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored
  • From: "weqq" <nginx-forum@xxxxxxxx>
  • Date: Wed, 08 Dec 2010 12:02:38 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=FlEz2o+1INchG3pjfZSVkKz1bCEGMHj0QmSqMeH1Np4=; b=roFIHnHdX0WJj4K3PEyKJAwOEz4+MWAfa/5ytaWwe3U/lo0OjXm1mMfIN2Lrq9w2mdwceZr82GJxN7AbcfTFz1JH5p3JmxCQ5o9y3SjEGgSMsfY5vc02udSTnDeFELQn;

Здравствуйте. выдает вот такую вот
вестчь:

fera@fera-desktop:/etc/nginx$ sudo nginx -t
[b][warn]: conflicting server name "korp" on 0.0.0.0:80, ignored
[warn]: conflicting server name "spma" on 0.0.0.0:80, ignored
[warn]: conflicting server name "test" on 0.0.0.0:80, ignored[/b]
the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful

долго гуглил, ничего не нашел..  что за
warning  и что с ним делать? как победить?
заранее благодарен!...


мои конфиги :

[b][color=#FF0000]"/etc/nginx/sites-enabled/"[/color][/b]
server {
        listen 80;
        server_name test;
        access_log /var/log/nginx.access_log;
        location ~*
.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$
{
                root /home/fera/www/test/;
                index index.php index.html;
                access_log off;
                expires 30d;
        }
        location ~ /.ht {
                deny all;
        }
        location / {
                proxy_pass http://127.0.0.1:88/;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-for $remote_addr;
                proxy_set_header Host $host;
                proxy_connect_timeout 60;
                proxy_send_timeout 90;
                proxy_read_timeout 90;
                proxy_redirect off;
                proxy_set_header Connection close;
                proxy_pass_header Content-Type;
                proxy_pass_header Content-Disposition;
                proxy_pass_header Content-Length;
        }
}

[b][color=#FF0000]"/etc/apache2/sites-enabled/"[/color][/b]

        ServerAdmin webmaster@localhost
        ServerName test
        ServerAlias www.test
        DocumentRoot /home/fera/www/test
        
                Options FollowSymLinks
                AllowOverride None
        
        
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        

        ErrorLog /var/log/apache2/test-error.log

        [b][color=#FF6600]# Possible values include: debug, info, notice, warn,
error, crit,
        # alert, emerg.[/color][/b]
        LogLevel warn

        CustomLog /var/log/apache2/test-access.log combined

    Alias /doc/ "/usr/share/doc/"
    
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    



[b][color=#FF0000]"/etc/nginx/nginx.conf"[/color][/b]
user www-data;
worker_processes  1;
[b][color=#FF6600]#error_log  logs\error.log;
#error_log  logs\error.log  notice;
#error_log  logs\error.log  info;
#pid        logs\nginx.pid;[/color][/b]
events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application\octet-stream;
    [b][color=#FF6600]#log_format  main  '$remote_addr - $remote_user
[$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
    #access_log  logs/access.log  main;[/color][/b]
    sendfile        on;
    
    keepalive_timeout  65;
    [b][color=#FF6600]#gzip  on;[/color][/b]
    upstream backend {
        server 127.0.0.1:88;
    }
    
    server {
        listen       80;
          server_name spma test korp data
        client_max_body_size 16M;
        location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js)$ {
            root /home/fera/www/$host;
        }
        
        location ~ /\.ht {
            deny  all;
        }
        location / {
            proxy_pass http://backend/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;

            proxy_connect_timeout 120;
            proxy_send_timeout    600;
            proxy_read_timeout    600;
        }
       
    }
    gzip             on;   
    gzip_min_length  1000;
    gzip_proxied     any;   
    gzip_types       text/plain text/xml application/xml
application/x-javascript text/javascript text/css text/json;
    gzip_disable     "msie6";
    gzip_comp_level  8;    
        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,156735,156735#msg-156735


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.