Why not Proxy with Nginx ?

Jörg Stephan johe.stephan at googlemail.com
Fri Jul 10 07:38:58 UTC 2009


Hi there,

on the meeting yesterday i've heared from the proxy problems with apache +
mod_proxy so i just wanne tell a bit from an other proxy which i set up a
few weeks ago in firm. So talking about Nginx. In the firm i work we had
problems with the many different URLs behind the old proxy and we come to an
state were apache has been to slow. One of the main points why i looked for
a different Software was the IP-Forward Problem we always had.
So i found Nginx. Nginx is a very fast proxy http://wiki.nginx.org/Main and
it comes with many modules to handle the connection. On the other hand it is
very easy to use.

So, take a short look:

proxy_redirect          off;
proxy_set_header        X-Real-IP       $host;
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_buffers           32 4k;

this does all the IP-Forwarding

and the (in this case webdav) is the configuration of the server

server {
        listen   80;
        server_name  isg-dav1.XX.XXXXX.de;
        access_log  /var/log/nginx/localhost.access.log;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
                root   /var/www/nginx-default;
        }
        location / {
                proxy_pass        http://isg-dav.XXXX.XXXXX.de;
                include /etc/nginx/proxy.conf;
        }
}

So if any question, i try to answer them,

Greets

Joerg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-infrastructure-list/attachments/20090710/e0f854e8/attachment.htm>


More information about the Fedora-infrastructure-list mailing list