haproxy nginx 多路径

nginx 多路径:

        location / {
            root /t/deploy/zjdev/deployedApps/zjzc-web-frontEnd/;
            index  index.html index.htm;
        }
		
        location /backoffice  {
            root /t/deploy/zjdev/deployedApps/zjzc-web-backoffice/;
            index  index.html index.htm;
        }
	
	location /zjzc-hy-front  {
            root /t/deploy/zjdev/deployedApps/;
            index  index.html index.htm;
        }


	location /zjzc-hy-web-admin  {
            root /t/deploy/zjdev/deployedApps/;
            index  index.html index.htm;
        
		
图片服务器:
    location /images {
	    root /nfs01/zjtest;
            index  index.html;
        }

        location /contract {
	    root /nfs01/zjtest;
            index  index.html;
        }


haproxy 配置:

   acl             image_req              path_beg                -i                      /images
        use_backend     imageserver          if                      image_req
		

原文地址:https://www.cnblogs.com/hzcya1995/p/13350334.html