Re: nginx http-? reverse!

me kemko.ru
19 16:44:31 MSD 2011


   "proxy_pass        http://mysite.ua:80;" 
   " reverse"?

19  2011. 15:47  Craken <nginx-forum  nginx.us> :
> vgoncharov Wrote:
> -------------------------------------------------------
>>   nginx 
>> http-?
>>
>>  reverse-proxy   - 
>>   .
>>    
>>   
>>   
>>   
>>  
>> http- .
>>
>>      -
>>  .
>>
>> !
>
>
>    nginx   http-proxy
>     5- !
>      !
>      
>  !
>
>   :
>
>    server {
>        listen 10.10.10.10:80;
>        listen 10.0.0.8:80;
>        listen 192.168.0.1:80;
>
>        access_log off;
>
>
>        if ($http_user_agent !~*
> (mozilla|opera|msie|android|safari|amaya|avant|advanced|camino|elinks|epiphany|flock|chrome|cceweasel|icecat|k-meleon|konqueror|links|lynx|mimino|netscape|seamonkey))
>        {
>          return 403;
>          break;
>        }
>
>         location / {
>             proxy_buffering  on;
>             proxy_buffers   8 8k;
>             proxy_pass    http://mysite.ua:80;
>             proxy_set_header Host       $host;
>             proxy_set_header X-Real-IP
> $remote_addr;
>             proxy_set_header X-Forwarded-For
> $remote_addr;
>         }
>
>
>    }
>
>
>     - 100-200
>   !
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,191865,192306#msg-192306
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru  nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>


nginx-ru