Hi All,
By default nginx server configured with port number 80 and I see the following from netstat
In the file /etc/nginx/nginx.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
[root@zs95kc conf.d]# netstat
-anp
Active Internet connections
(servers and established)
Proto Recv-Q Send-Q Local
Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:8000
0.0.0.0:* LISTEN 57091/nginx:
master
tcp 0 0 0.0.0.0:8001
0.0.0.0:* LISTEN 57091/nginx:
master
tcp 0
0 0.0.0.0:80 0.0.0.0:* LISTEN
57091/nginx: master
tcp 0 0
192.168.122.1:53 0.0.0.0:* LISTEN
15237/dnsmasq
tcp 0 0 0.0.0.0:22
0.0.0.0:* LISTEN 12897/sshd
tcp 0 248
10.20.92.162:22 10.20.94.36:49404 ESTABLISHED
56319/sshd: root@pt
tcp6 0
0 :::80 :::* LISTEN
57091/nginx: master
tcp6 0 0 :::22
:::* LISTEN 12897/sshd
udp 0 0
192.168.122.1:53 0.0.0.0:*
15237/dnsmasq
udp 0 0 0.0.0.0:67
0.0.0.0:* 15237/dnsmasq
raw6 0 0 :::58
:::* 7
12181/NetworkManage
So the question I have is do we really require nginx listing on port number 80 by wok ?
Thanks in advance,
Regards
Chandra