ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Обратный прокси д ля MS Reporting Services


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Обратный прокси д ля MS Reporting Services
  • From: Alexandr Kutuzov <alleteam@xxxxxxxxx>
  • Date: Wed, 18 Nov 2009 13:58:33 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=/v+sUAg9t8BQFB3CewPwgl+GxBf6Kx+iSXDsFH+erJo=; b=K9tx74nCQx7JKFFgK5ToTjY+05JcH0zgzWgPUCIRRxRbRUftM2oSSjTVwJT1fo3/Uw kglZ6LsOvuqWqPfSW6bIjgvayvUUZoNzo5dc4JFNusoKIJ5Qax3VH0I3KJVLqXqhCavk Id3wSgs97eLt4tv7TDXt8s+lGZfCreiZBttJ8=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=i3r/jkF561LVHDZJwBCDuYyjd4FpbEGL8ijVvc56sRUhn5LshuqePm5OIfPhTPY/ic t6NpCPiEIwwE36+2sQp+9EJRpgCwgK1juMJOVvreWSN9YpPY7+2mu8DSeCMeJEGjmnLM n4xyhuy8UmJGVVaUZEsw+DE2bXcUPIxhI6s04=
  • In-reply-to: <d93987f5b135cd8261d9a55360dc9776.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <d93987f5b135cd8261d9a55360dc9776.NginxMailingListRussian@xxxxxxxxxxxxxxx>


18.11.2009, в 7:59, Sheh написал(а):

worker_processes  1;
pid        logs/nginx.pid;

events {
   worker_connections  1024;
}

http {
   include       mime.types;
   default_type  application/octet-stream;
   sendfile        on;
   keepalive_timeout  65;

   server
   {
       listen       80;
       server_name  localhost;
       sub_filter http://server-db/ http://87.241.*.*/;
       sub_filter_once   off;
       sub_filter_types text/xml text/css text/_javascript_;

       location /
       {
       proxy_pass http://192.168.2.2;
+        proxy_set_header   Host             $host;
+        proxy_set_header   X-Real-IP        $remote_addr;
+        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
       }

       error_page   500 502 503 504  /50x.html;
       location = /50x.html
           {
           root   html;
           }
   }



 




Copyright © Lexa Software, 1996-2009.