Hello,
I installed Nginx. Set up as a server for static content and a dynamic content to be redirected to a Apache server behind. Everything works fine, server load decreased. I began to serving three times more requests. Glad that everything worked, but the beam. I try to upload a video file size 15 MB and you fail the script cycles. Nothing happens. I'm not getting any error in the browser, in logs not see anything. Does anyone have any idea what may be due to the problem? Here is what my configuration of Nginx-a:
[b]/etc/nginx/sites-enabled/proxy[/b]
[quote] server { # simple reverse-proxy
listen 80;
server_name mysite.com http://www.mysite.com;
access_log /var/log/nginx/proxy.access.log;
error_log /var/log/nginx/proxy.error.log;
# serve static files
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
root /var/www;
expires 30d;
}
# pass requests for dynamic content to rails/turbogears/zope, et al
location / {
proxy_pass http://127.0.0.1:8080;
include /etc/nginx/proxy.conf;
}
}[/quote]
[b]/etc/nginx/proxy.conf[/b]
[quote]
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;[/quote]
[b]/etc/nginx/nginx.conf[/b]
[quote]user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 2;
tcp_nodelay on;
gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}[/quote]
Before I run Nginx-front and everything worked. I want to be able to upload video files of up to 200 MB.
Thanks in advance!