我试图在我的上启动我的节点服务,但是当我尝试执行nginx -t时,我一直收到这个错误。
nginx: [emerg] "upstream" directive is not allowed here in /etc/nginx/nginx.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed
我现在的nginx.conf是这样的:
upstream backend {
server 127.0.0.1:5555;
}
map $sent_http_content_type $charse
我有两个应用程序在同一服务器不同的端口8080,8090与相同的域。
我已经将nginx配置如下:
server {
listen 80 ;
server_name XXX.XXX.XXX;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location /{
pro