|
@@ -38,9 +38,9 @@ server {
|
|
|
}
|
|
|
|
|
|
location ^~ /static {
|
|
|
- #rewrite ^/static/(.*)$ /$1 break; #重写
|
|
|
- #proxy_pass http://cloudimg-xypp.xinyuepp.cn/;
|
|
|
- rewrite ^/static/(.*) http://cloudimg-xypp.xinyuepp.cn/$1 permanent;
|
|
|
+ proxy_set_header Host $http_host;
|
|
|
+ rewrite ^/static/(.*)$ /$1 break; #重写
|
|
|
+ proxy_pass http://cloudimg-xypp.xinyuepp.cn/;
|
|
|
}
|
|
|
|
|
|
location ^~ /assets/images {
|