title: 500 internal server error Nginx
body: <p>I am having some trouble with Nginx i m getting [b]500 internal server error[/b]</p>
  
  <p>So i went check the logs at[i] /var/log/nginx/error.log[/i]</p>
  
  <p>And i found these Error :</p>
  
  <pre><code>2015/01/11 21:16:00 [emerg] 3365#0: bind() to xx.xxx.xxx.x:80 failed (98: Address already in use)
  2015/01/11 21:16:00 [emerg] 3365#0: bind() to [::]:80 failed (98: Address already in use)
  2015/01/11 21:16:00 [emerg] 3365#0: still could not bind()
  </code></pre>
  
  <p>I readed in another threat that it s because some other service is runing in same pot so i used this command : netstat -tulpn | grep --color :80</p>
  
  <pre><code>tcp        0      0 xx.xxx.xxx.x:80             0.0.0.0:*                   LISTEN      3102/nginx
  tcp        0      0 0.0.0.0:8081                0.0.0.0:*                   LISTEN      3363/httpd
  tcp        0      0 :::80                       :::*                        LISTEN      3102/nginx
  tcp        0      0 :::8081                     :::*                        LISTEN      3363/httpd
  </code></pre>
  
  <p>So for me that mean that Nginx is runing well in the right port !</p>
  
  <p>Please help</p>