worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream niginx-cluster{
server 127.0.0.1:8845 ;
server 127.0.0.1:8846 ;
server 127.0.0.1:8847 ;
}
server {
listen 8888; #本机监听端口
server_name localhost;
location /nacos {
proxy_pass http://niginx-cluster; #映射端口名称
}
error_page 500 502 503 504 /50x.html;
location = /50.html {
root html;
}
}
}