ssl accelerator

Joe Bofh lists at ruby-forum.com
Fri May 1 02:49:21 MSD 2009


Igor,

Can you explain why it's better to use this format?

--J

Igor Sysoev wrote:

> 
> Also, it's better to use this configuration
> 
>        location / {
>            root   html;
>            index  index.html index.htm;
>            try_files  $uri  @magazine;
>        }
> 
>        locaiton @magazine {
>            proxy_set_header X-Real-IP $remote_addr;
>            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>            proxy_set_header Host $http_host;
>            proxy_set_header X-FORWARDED_PROTO https;
> 
>            proxy_pass http://dev1.magazine.com:8000;
>        }
> 
> without "if" and "upstream dev1.magazine.com".
> 
> By default
> 
>        proxy_pass      http://dev1.magazine.com:8000;
> 
> also adds
> 
>        proxy_redirect  http://dev1.magazine.com:8000/   /;

-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list