server {
listen 8080;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location ~/(.*)/(.*)/(.*) {
set $env $1;
set $type $2;
set $other $3;
proxy_set_header Host xxxxxxx.oss-cn-hangzhou.aliyuncs.com;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass http://xxxxxx.oss-cn-hangzhou.aliyuncs.com/$env/$type/$other/index.html;
}
}