Nginx PRECONTENT mirror模块

L62

Nginx PRECONTENT mirror模块_第1张图片

location = /mirror {
                internal ; //只能内部访问
                proxy_pass http://sho***.com.cn:8011$request_uri;
                proxy_pass_request_body off;
                proxy_set_header Content-Length "";
                proxy_set_header X-Original-URI $request_uri;
        }

location / {
                mirror /mirror;
                mirror_request_body off;
}

 

转载于:https://www.cnblogs.com/jackey2015/p/10725008.html

你可能感兴趣的:(运维)