How to allow both http and https?
I added following nginx conf
listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
...
But when i check by -
nginx -c /etc/nginx/nginx.conf -t
its show conflict massage.
[warn] conflicting server name "example.com" on 0.0.0.0:80, ignored