Re: nginx proxy_pass amazon chrome/chromium

public-mail alekciy.ru
12 18:31:46 UTC 2011


" "   google chrome.     ,  
         ,   
       ,  
    .

 ,          
 ,    ,   nginx.

12  2011. 15:41  Konstantin Pavlov
<thresh at videolan.org> :
>  .
>
>     google chrome / chromium  nginx 
>  nginx      bucket' 
> amazon.
>
>    10   mp3-   ,  google
> chrome / chromium    mp3-.   
>  amazon bucket   .
>
> /etc/nginx/nginx.conf:
>
> worker_processes 30;
>
> events {
>  worker_connections 1024;
> }
>
> http {
>  client_max_body_size 1024m;
>  proxy_connect_timeout 30s;
>  proxy_read_timeout 60s;
>  proxy_send_timeout 60s;
>
>  proxy_cache_path /var/lib/nginx/tmp/proxy/cache/ keys_zone=cache:1024m max_size=30000m;
>
>  merge_slashes off;
>  ignore_invalid_headers off;
>
>  proxy_temp_path /var/lib/nginx/tmp/proxy;
>  fastcgi_temp_path /var/lib/nginx/tmp/fastcgi;
>  client_body_temp_path /var/lib/nginx/tmp/client;
>
>  include    mime.types;
>  default_type application/octet-stream;
>
>  log_format main '$remote_addr - $remote_user [$time_local] '
>            '"$request" $status $bytes_sent $sent_http_content_length '
>            '"$http_user_agent" "$http_x_forwarded_for"';
>
>  keepalive_timeout   0;
>  sendfile    off;
>  gzip off;
>
>  server {
>
>    listen 80;
>    server_name download-mp3.domain.tld;
>
>    location = /favicon.ico {
>        return 204;
>    }
>
>    location / {
>
>    proxy_pass http://downloadtld-mp3.s3.amazonaws.com/;
>    proxy_next_upstream error timeout http_500 http_502 http_503 http_504;
>    proxy_redirect   off;
>    proxy_cache cache;
>    proxy_cache_valid 1d;
>    expires 604800;
>    proxy_hide_header X-Amz-Id-2;
>    proxy_hide_header X-Amz-Request-Id;
>    proxy_hide_header ETag;
>    proxy_hide_header Last-Modified;
>
>    }
>
>    access_log /var/log/nginx/access.log main;
>    error_log  /var/log/nginx/error.log debug;
>
>  }
>
> }
>
>
>   ,  error.log   "client closed
> prematurely connection while reading upstream".
>    ,   URL       
> ,        .
>     ,      , ..   
>  URL' ,       ,   
>  .
>
> debug_connection       , 
>   ģ    .
>
>     ?
>
> --
> Konstantin Pavlov
> VideoLAN team
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru


nginx-ru