Welcome! Log In Create A New Profile

Advanced

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

December 08, 2010 07:15AM
Здравствуйте. выдает вот такую вот вестчь:

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]
<VirtualHost *:88>
ServerAdmin webmaster@localhost
ServerName test
ServerAlias www.test
DocumentRoot /home/fera/www/test
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/fera/www/test>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

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

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/"
<Directory "/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
</Directory>

</VirtualHost>

[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/*;
}
Subject Author Posted

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

weqq December 08, 2010 07:15AM

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

Sergey Shepelev December 08, 2010 12:14PM

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

weqq December 09, 2010 02:55AM

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

weqq December 09, 2010 08:43AM

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

Sergey Shepelev December 09, 2010 06:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready