用Nginx负载均衡器实现url分发
upstream mysrv {
ip_hash;
server 192.168.0.1;
server 192.168.0.2;
}
upstream myjpg {
server 192.168.0.3:88;
}
server
{
listen 80;
server_name web.tfzq.com;
proxy_redirect off;
location ~ ^/StockInfo{
proxy_pass http://myjpg;
}