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
		

阅读更多
个人分类: haproxy
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭