问题:nginx: [emerg] “server” directive is not allowed here in C:\Program Files\nginx-1.12.2/conf/nginx.conf:47 解决方案:server{}里的内容写到http外面了,所以导致了这个问题