Skip to content

Commit

Permalink
Update nginx/conf/nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
fly2wind committed Feb 23, 2013
1 parent 10e36d5 commit fb8a1ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ http {
access_log logs/media.jxhd365.com.access.log main;

location / {
set $image_root /opt/wwwroot/jxhd365.com/media.jxhd365.com;
set $image_root /opt/wwwroot/jxhd365.com/media.jxhd365.com/;
set $file "$image_root$uri";

if (!-f $request_filename) {
if (!-f $file) {
rewrite_by_lua '
local index = string.find(ngx.var.uri, "([0-9]+)x([0-9]+)");
local originalUri = string.sub(ngx.var.uri, 0, index-2);
Expand Down Expand Up @@ -102,7 +102,7 @@ http {
end;
';
}
alias /opt/wwwroot/jxhd365.com/media.jxhd365.com/image;
alias /opt/wwwroot/jxhd365.com/media.jxhd365.com/;
}
}
}

0 comments on commit fb8a1ec

Please sign in to comment.