diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-08-06 03:09:21 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-08-06 03:09:21 -0400 |
| commit | e23a925411e08e31c6d53cb489ce848833b01e14 (patch) | |
| tree | 5105be13209c1cc013eb94825ec22ed7fe12a8fc /conf | |
| parent | 691101ff57140b38f5aaed6454c28f36b0d8c4e2 (diff) | |
Added amazon s3 routing
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/nginx.conf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf index 3e6cbe5..44967bb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -32,8 +32,13 @@ http { client_max_body_size 15m; location ~* /(avatars|images)/ { + if (!-f $request_filename) { + rewrite ^(.*)$ http://dumpfm.s3.amazonaws.com$1 permanent; + break; + } + root /home/dumpfmprod/prod; - expires 30d; + expires 30d; } location ~* /static/ { |
