Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: не работает flash
- To: nginx-ru@xxxxxxxxx
- Subject: Re: не работает flash
- From: "billi" <nginx-forum@xxxxxxxx>
- Date: Thu, 20 Dec 2012 07:15:50 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=731ll5Y3P6uoCAsYudSqV4elFV1t87cNCjTVwmZSe+Q=; b=NLYCN5cxcMUFNF3LDos/NxFAksGW/n5rIJLkg3eeIqvv9inlMrRUpTPGXzd9ETkaTM56S6+eDM9zRt9+DNh1+HfIead9UaBOOh/krmJEPGGFGB0ZxuZA+7ALZP4i6T6z;
- In-reply-to: <CAAwq3jwBkpTsgqH77iuVntDxG=-bre5pf9SzkHs4XUd2yHmyjQ@mail.gmail.com>
- References: <CAAwq3jwBkpTsgqH77iuVntDxG=-bre5pf9SzkHs4XUd2yHmyjQ@mail.gmail.com>
поправил ,но сча возникает другая проблема. 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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|