Opened 12 years ago
Closed 12 years ago
#193 closed defect (invalid)
nginx bug
Reported by: | Feng Sheng | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-core | Version: | 1.2.x |
Keywords: | Cc: | ||
uname -a: | Linux xx.yy.com 2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux | ||
nginx -V: |
nginx version: nginx/1.2.3
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) TLS SNI support enabled configure arguments: --prefix=/usr/local/services/nginx-1.2.3 --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx --user=www --group=www --without-select_module --without-poll_module --with-file-aio --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --without-http_ssi_module --without-http_userid_module --without-http_uwsgi_module --without-http_scgi_module --without-http_memcached_module --without-http_limit_conn_module --without-http_limit_req_module --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/tmp/client-body-temp --http-proxy-temp-path=/tmp/proxy-temp --http-fastcgi-temp-path=/tmp/fastcgi-temp --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --add-module=../agentzh-headers-more-nginx-module-*/ |
Description
/usr/local/services/nginx-1.2.3/sbin/nginx -t
nginx: [emerg] duplicate listen options for 0.0.0.0:80 in /usr/local/services/nginx-1.2.3/conf/vhosts/localhost:47
nginx: configuration file /usr/local/services/nginx-1.2.3/conf/localhost test failed
config sample
server {
listen 80 backlog=4096;
server_name abc.def.com;
......
}
server {
listen 80 backlog=4096;
server_name beta.abc.def.com;
......
}
if I delete backlog=4096 ,it works,so I think it's maybe a bug.
server {
listen 80;
server_name abc.def.com;
......
}
server {
listen 80;
server_name beta.abc.def.com;
......
}
Message more or less clearly says that nginx complained about _duplicate_ listening options. You have to specify them once, i.e.