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