nginx.conf简单配置,nginx.conf配置


nginx.conf简单配置
upstream tomcatserver {
server 192.168.72.131:8080 weight=1 max_fails=2 fail_timeout=30s;
server 192.168.72.130:8080 weight=1 max_fails=2 fail_timeout=30s;
}
upstream imageserver {
server 192.168.72.129:8080 weight=1 max_fails=2 fail_timeout=30s;
server 192.168.72.133:8080 weight=1 max_fails=2 fail_timeout=30s;
}
server {
listen 80;
server_name 192.168.72.128;
access_log logs/access.test.log main;
location / {
proxy_pass http://tomcatserver;
index index.html;
}
location ~ .(jpg|jpeg|png|gif)$ {
proxy_pass http://imageserver;
}
}

相关内容

    暂无相关文章