nginx: [emerg] unknown directive "http"
/etc/nginx/nginx.conf is the main config file with the http {}, the files in conf.d are loaded inside that block, so the http is already there.
If you want to specify some config variable in the http block, put it in a conf.d file with no other tags wrapping it.