Size: a a a

2020 June 12

i

ivdok in nginx_ru
root@demo:~# nginx -T | grep listen
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
#    listen     localhost:110;
#    listen     localhost:143;
   listen 1.1.1.24:80;
   listen 1.1.1.1:443 ssl default_server; # managed by Certbot
источник

P

Parra in nginx_ru
I have a strange behavior, I'm intercepting all bind calls from nginx and I'm seeing it binds the port 9000 (the one specified by my configuration) but also the port 8000, which isn't specified in any place. After starting up, I run netstat and I can only see the port 9000 binded, why is nginx calling bind to that port?
источник

AV

Alexander V in nginx_ru
эммм
источник

AV

Alexander V in nginx_ru
ivdok
root@demo:~# nginx -T | grep listen
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
#    listen     localhost:110;
#    listen     localhost:143;
   listen 1.1.1.24:80;
   listen 1.1.1.1:443 ssl default_server; # managed by Certbot
а убери default_server в ssl
источник

AV

Alexander V in nginx_ru
и оставь в 80
источник

i

ivdok in nginx_ru
Alexander V
а убери default_server в ssl
Не повлияло
источник

AV

Alexander V in nginx_ru
делай только restart а не reload
источник

i

ivdok in nginx_ru
Alexander V
делай только restart а не reload
Не повлияло
источник

AV

Alexander V in nginx_ru
netstat -ntlp | grep nginx
источник

i

ivdok in nginx_ru
Alexander V
netstat -ntlp | grep nginx
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7045/nginx -g daemoroot@demo:~# nginx -T | grep listen
———
   listen 2.59.213.24:80 default_server;
   listen 2.59.213.24:443 ssl; # managed by Certbot
источник

i

ivdok in nginx_ru
Ладно, хрен с ним, спишем на то, что на самом деле не умеет nginx так делать - слишком много времени потерял
источник

AV

Alexander V in nginx_ru
умеет
источник

AV

Alexander V in nginx_ru
это у тебя магия какая-то )
источник

AN

Anton Noginov in nginx_ru
Parra
I have a strange behavior, I'm intercepting all bind calls from nginx and I'm seeing it binds the port 9000 (the one specified by my configuration) but also the port 8000, which isn't specified in any place. After starting up, I run netstat and I can only see the port 9000 binded, why is nginx calling bind to that port?
Could you please share config file alongside with strace?
источник

P

Parra in nginx_ru
Anton Noginov
Could you please share config file alongside with strace?
I've got an idea, I'm gonna change the implementation and I'll notify you with the news
источник

P

Parra in nginx_ru
Anton Noginov
Could you please share config file alongside with strace?
my idea didn't work, I've printed the backtrace manually
источник

P

Parra in nginx_ru
Переслано от Parra
источник

P

Parra in nginx_ru
it's strange because after startup, that port isn't being used anymore
источник

P

Parra in nginx_ru
oh solved
источник

P

Parra in nginx_ru
it was this part
источник