Welcome! Log In Create A New Profile

Advanced

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

December 20, 2012 07:15AM
поправил ,но сча возникает другая проблема. 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;
}
}
Subject Author Posted

не работает flash

billi December 20, 2012 03:15AM

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

billi December 20, 2012 03:28AM

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

billi December 20, 2012 03:50AM

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

aaaa5 December 20, 2012 07:05AM

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

Андрей Василишин December 20, 2012 06:00AM

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

VovansystemS December 20, 2012 07:12AM

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

billi December 20, 2012 07:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready