Size: a a a

2020 June 12

AN

Anton Noginov in nginx_ru
What is ngx_http_port_module?
источник

P

Parra in nginx_ru
Anton Noginov
What is ngx_http_port_module?
a module I wrote for intercepting syscalls
источник

P

Parra in nginx_ru
источник

P

Parra in nginx_ru
I don't even know what's this 😂
источник

P

Parra in nginx_ru
do you know what is it?
источник

AN

Anton Noginov in nginx_ru
That's default vhost to disable requests without Host header set. It's commented out anyway.
источник

P

Parra in nginx_ru
but this opens a default port in 8000
источник

P

Parra in nginx_ru
can't it be done in 9000?
источник

P

Parra in nginx_ru
or it will collide with the other server
источник

AN

Anton Noginov in nginx_ru
No, this does not open any ports at all, as commented out.
источник

P

Parra in nginx_ru
the stack trace doesn't say the same
источник

P

Parra in nginx_ru
as you can see bind is called with 8000
источник

P

Parra in nginx_ru
and also listen
источник

AN

Anton Noginov in nginx_ru
Could you check using convenient syscall tracker?
источник

P

Parra in nginx_ru
If the directive is not present then either *:80 is used if nginx runs with the superuser privileges, or *:8000 otherwise.
источник

P

Parra in nginx_ru
источник

P

Parra in nginx_ru
this is why it binds to 8000
источник

P

Parra in nginx_ru
Anton Noginov
Could you check using convenient syscall tracker?
the project is complex and it takes a bit of time to attach properly the debugger and strace
источник

P

Parra in nginx_ru
anyway, can this set in another way for port 9000 without colliding with my current server?
источник

P

Parra in nginx_ru
or I can leave it commented and that's it
источник