worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
fastcgi_intercept_errors on;
upstream testxx {
server 172.16.17.38:8080; #跳三下
server 172.16.17.38:9090; #跳三下
}
server {
listen 8081;
server_name localhost;
location / {
proxy_pass http://testxx;
}
location ~ /SharedImageServer/(headpic|contentpic)/.*\.(gif|jpg|jpeg|png)$ {
root D:\images;
autoindex on;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
联系客服