magenx / Magento-nginx-config

Default Nginx config for Magento 2
https://www.magenx.com
GNU General Public License v3.0
506 stars 211 forks source link

nginx: [emerg] duplicate listen options for 0.0.0.0:80 in /etc/nginx/port.conf:1 #11

Closed Morgy93 closed 8 years ago

Morgy93 commented 8 years ago

Hello,

I get the following error while trying to start nginx after using the m1_config_install.sh: nginx: [emerg] duplicate listen options for 0.0.0.0:80 in /etc/nginx/port.conf:1

I assume that it has something to do with the "reuseport" option, but I don't know how to resolve it other than removing it.

ruud3007 commented 8 years ago

I also have it. Change line 1 of /etc/nginx/port.conf to: listen 80;

magenx commented 8 years ago

yes, port.conf was included twice, actually removed this file. so main server block islisten 80 reuseport;