Re: не работает flash

billi nginx-forum at nginx.us
Thu Dec 20 12:15:50 UTC 2012


поправил ,но сча возникает другая проблема.  webfile.ru/6278870  
вот конфиг  nginx.conf 

user  nginx;
worker_processes  4;
worker_rlimit_nofile 10240;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request"
'
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    gzip  on;
    proxy_cache_valid  200 301 302 304 4h;
    proxy_cache_valid  404 1m;
    proxy_cache_valid  any 15m;
    proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=cache:1024m
inactive=3d max_size=300G;
    proxy_temp_path /var/lib/nginx/proxy 1 2;
    proxy_ignore_headers Expires Cache-Control;
    proxy_cache_use_stale error timeout invalid_header http_502;
    proxy_cache_bypass $cookie_session;
    proxy_no_cache $cookie_session;

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

ну и настройки самого сервера 
server {
        listen   80;
        server_name www.hostname.ru hostname.ru;
        error_log  /var/log/nginx/hostname-error.log;

          location / {
            limit_rate_after 10m;
            limit_rate 300k;
            proxy_pass http://www.hostname.ru; 
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-for $remote_addr;
            proxy_set_header Host $host;
            proxy_connect_timeout 60;
            proxy_send_timeout 90;
            proxy_read_timeout 90;
            proxy_redirect default; #off;
            proxy_set_header Connection close;
            proxy_pass_header Content-Type;
            proxy_pass_header Content-Disposition;
            proxy_pass_header Content-Length;
            #fastcgi_cache_key "$server_addr:$server_port$request_uri";
            }

        # caching this types
        location ~*
^.+\.(jpg|jpeg|gif|png|ico|css|js|html|avi|mp4|mkv|flv|)$ {
            proxy_cache  cache;
            proxy_pass http://www.hostname.ru; 
            }
        location /video/ {
            mp4;
            mp4_buffer_size     10m;
            mp4_max_buffer_size 50m;
            }
        location ~ \.flv$ {
            flv;
            }
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,234228,234245#msg-234245



Подробная информация о списке рассылки nginx-ru