Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

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


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:

server { # simple reverse-proxy
listen 80;
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;
user www-data;
worker_processes 4;

error_log /var/log/nginx/error.log;
pid /var/run/;

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!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:34 PM
LXer: Transparent dynamic reverse proxy with nginx LXer Syndicated Linux News 0 07-12-2009 05:40 PM
Apache as Reverse Proxy LR_Brian Linux - Server 4 02-17-2009 12:33 PM
All traffic showed as proxy after installing nginx proxy to apache centosfan Linux - Server 0 10-25-2008 09:41 AM
Apache reverse proxy noir911 Linux - Server 0 02-05-2008 09:21 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 PM.

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