作者 zhl

u

@@ -92,6 +92,13 @@ public function createBtSite($domain, $ssl_open, $ssl_auto, $ssl_auto_day, $ssl_ @@ -92,6 +92,13 @@ public function createBtSite($domain, $ssl_open, $ssl_auto, $ssl_auto_day, $ssl_
92 location @opencart { 92 location @opencart {
93 rewrite ^/(.+)$ /index.php?_route_=$1 last; 93 rewrite ^/(.+)$ /index.php?_route_=$1 last;
94 } 94 }
  95 +
  96 + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
  97 + try_files $uri $uri/ /img_crop.php$is_args$query_string;
  98 + expires 30d;
  99 + error_log /dev/null;
  100 + access_log /dev/null;
  101 + }
95 # End SEO settings'; 102 # End SEO settings';
96 $bt->SaveFileBody($host, $htaccess); 103 $bt->SaveFileBody($host, $htaccess);
97 104