LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-13-2009, 04:53 AM   #1
Abadon_
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Nginx like as a reverse proxy for Apache


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:

/etc/nginx/sites-enabled/proxy
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;
}
}
/etc/nginx/proxy.conf
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;
/etc/nginx/nginx.conf
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx reverse proxy, home network, phpbb = fail jeradj Linux - Software 1 09-18-2009 11:34 AM
LXer: Transparent dynamic reverse proxy with nginx LXer Syndicated Linux News 0 07-12-2009 04:40 PM
Apache as Reverse Proxy LR_Brian Linux - Server 4 02-17-2009 11:33 AM
All traffic showed as proxy after installing nginx proxy to apache centosfan Linux - Server 0 10-25-2008 08:41 AM
Apache reverse proxy noir911 Linux - Server 0 02-05-2008 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration