Last updated
Was this helpful?
Last updated
Was this helpful?
如果客户端的请求URL为“http://www.myweb.name/file/download/media/1.mp3”时
该虚拟服务器首先使用location file/ {……}块将该URL进行重写为http://www.myweb.name/file/download/mp3/1.mp3,
然后新的URL再由location / {……}块转发到后端的backend服务器组中实现负载均衡。