nginx_redash_site causes `a duplicate default server for 0.0.0.0:80`


#1

I report a trivial error.

After I run sh setup/amazon_linux/bootstrap.sh on an amazon linux, nginx -t -c /etc/nginx/nginx.conf shows the following error message.

nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/nginx.conf:38
nginx: configuration file /etc/nginx/nginx.conf test failed

I think that this error is caused by a repeat of the listen directive in both /etc/nginx/nginx.conf and /etc/nginx/conf.d/redash.conf.

# in /etc/nginx/nginx.conf
    listen       80 default_server;
    listen       [::]:80 default_server;
# /etc/nginx/conf.d/redash.conf
    listen 80 default;

Perhaps you could remove listen 80 default; from /etc/nginx/conf.d/redash.conf.

Thanks