upstream cluster{
server 127.0.0.1:3333;
server 127.0.0.1:4444;
server 127.0.0.1:5555;
}
server {
listen 1111;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
#root html;
#index index.html index.htm;
proxy_pass http://cluster;
}
这是nginx.conf中我修改的地方,原先nginx是好的,自从我加了这个upstream后就404了,但是upstream里的转发地址都在浏览器中测试过可以访问,那到底是啥问题啊,访问localhost:1111显示404,访问localhost:3333,localhost:4444,localhost:5555都是可以正常访问的