Welcome! Log In Create A New Profile


Nginx like as a reverse proxy for Apache

Posted by Abadon 
Nginx like as a reverse proxy for Apache
November 13, 2009 05:20AM

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:

[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 / {
include /etc/nginx/proxy.conf;

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]

[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/*;

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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready