Authored by hf

code review by fei.hong: do test https code

@@ -438,8 +438,10 @@ server @@ -438,8 +438,10 @@ server
438 } 438 }
439 439
440 location ^~ /dist/ { 440 location ^~ /dist/ {
441 - root /Data/PE/yohobuy/yohobuy/static;  
442 - expires 30d; 441 + #root /Data/PE/yohobuy/yohobuy/static;
  442 + #expires 30d;
  443 + proxy_redirect off;
  444 + proxy_pass http://cdn.yoho.cn/;
443 } 445 }
444 446
445 location ~* \.(ico|woff|svg|eot|ttf|otf)$ { 447 location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
1 <!-- Google Tag Manager --> 1 <!-- Google Tag Manager -->
2 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 2 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3 <script> 3 <script>
  4 + var _hmt = _hmt || [];
  5 + function async_load(){
4 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 6 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
5 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 7 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
6 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 8 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
7 '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 9 '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
8 })(window,document,'script','dataLayer','GTM-W958MG'); 10 })(window,document,'script','dataLayer','GTM-W958MG');
9 -</script>  
10 -<!-- End Google Tag Manager -->  
11 -<script type="text/javascript">  
12 - var _hmt = _hmt || [];  
13 (function() { 11 (function() {
14 var hm = document.createElement("script"); 12 var hm = document.createElement("script");
15 hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; 13 hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  14 + hm.async = 1;
16 var s = document.getElementsByTagName("script")[0]; 15 var s = document.getElementsByTagName("script")[0];
17 s.parentNode.insertBefore(hm, s); 16 s.parentNode.insertBefore(hm, s);
18 })(); 17 })();
19 -</script>  
20 -<script>  
21 - var _hmt = _hmt || [];  
22 (function() { 18 (function() {
23 var hm = document.createElement("script"); 19 var hm = document.createElement("script");
24 hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; 20 hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  21 + hm.async = 1;
25 var s = document.getElementsByTagName("script")[0]; 22 var s = document.getElementsByTagName("script")[0];
26 s.parentNode.insertBefore(hm, s); 23 s.parentNode.insertBefore(hm, s);
27 })(); 24 })();
  25 + (function() {
  26 + var hm = document.createElement("script");
  27 + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
  28 + var s = document.getElementsByTagName("script")[0];
  29 + s.parentNode.insertBefore(hm, s);
  30 + })();
  31 + (function(w, d, s, j, f) {
  32 + var a = d.createElement(s);
  33 + var m = d.getElementsByTagName(s)[0];
  34 + w.YohoAcquisitionObject = f;
  35 + w[f] = function(){w[f].p = arguments;};
  36 + a.async = 1;a.src = j;
  37 + m.parentNode.insertBefore(a, m);
  38 + })(window, document, 'script', '/dist/yas-jssdk/1.0.14/yas.js', '_yas');
  39 + }
  40 + window.addEventListener('load', async_load, false);
  41 +</script>
  42 +<script>
  43 + window._py = window._py||[];
  44 + window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);
  45 + window._py.push(['domain','stats.ipinyou.com']);
  46 + window._py.push(['e','']);
  47 + if(typeof _goodsData!='undefined'){
  48 + window._py.push(['pi',_goodsData]);
  49 + }
  50 + -function(d){
  51 + var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;
  52 + c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';
  53 + var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);
  54 + }(document);
28 </script> 55 </script>
29 -<script src="/dist/analysis/v1/js/om_code.js"></script> 56 +<script src="/dist/analysis/v1/js/om_code.js" async="async"></script>