nginx负载均衡配置
upstream java {server 192.168.1.39:8080;
server 192.168.1.39:8081;
}
server {
listen 80;
server_name192.168.1.39;
#charset koi8-r;
#access_loglogs/host.access.logmain;
location / {
#root html;
#indexindex.html index.htm;
# proxy_pass http://192.168.1.39:8081;
proxy_pass http://java;
}
页:
[1]