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:



 .

             .

           
   url http://host.ru/  

  .
5  2011. 14:06  Maxim Dounin <mdounin@xxxxxxxxxx> :
> Hello!
>
> On Mon, Dec 05, 2011 at 02:00:07PM +0400,   wrote:
>
>> ,  .
>>
>>       http://host1.ru
>>  http://host.ru/data/sql
>>
>>  
>>
>> server {
>>     server_name host1.ru ;
>>
>>     location / {
>>        rewrite ^/(.*)$ "/data/sql/" break;
>>         proxy_pass     http://backend01:80;
>>         proxy_set_header  Host        host.ru;
>>         proxy_set_header  X-Host       $http_host;
>>         proxy_set_header  X-Real-IP     $remote_addr;
>>         proxy_set_header  X-Forwarded-Proto 
>> $http_x_forwarded_proto;
>>     }
>>
>>   ...
>
>  rewrite? Rewrite   .
>
> server {
>  server_name host1.ru;
>
>  location / {
>    proxy_pass http://host.ru/data/sql/;
>  }
> }
>
>   "proxy_set_header X-..."  .
>
> Maxim Dounin
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

  • References:
      • From:
    • Re:
      • From: Maxim Dounin

 




Copyright © Lexa Software, 1996-2009.