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: rewrite+ proxy bind -



 !
  if   .
   if ($uri) -   .
 ,  .      (
    /)?
  :

server {
    listen    127.0.0.44;
    location / {
       access_log  /var/log/nginx/127.0.0.44_access_log;
       proxy_bind "127.0.0.44";
       proxy_pass   "http://n1ck.name/2.php?$uri";;
    }
}


.. ,   ,   -   
 ,    .    .

15  2009 . 6:25  Kirill <nginx-forum@xxxxxxxx> :
>  .        .
>   rewrite   proxy_bind    
>     pc->local   ( - )
>     proxy_bind  
> ---------------------------------
> user www-data;
> events {
>  use epoll;
> }
>
> http {
>  include    /etc/nginx/mime.types;
>  default_type application/octet-stream;
>
>  access_log /dev/null;
>
>  resolver 8.8.8.8;
>
>  server {
>  listen  127.0.0.44;
>  location / {
>    set $dir "/";
>    if ( $uri ~* ^/(.+)$ ) {
>    set $dir $1;
>    }
>    access_log /var/log/nginx/127.0.0.44_access_log;
>    proxy_bind "127.0.0.44";
>    proxy_pass  "http://n1ck.name/2.php?$dir";;
>  }
>  }
> }
> -------
>     
>    if ( $uri ~* ^/(.+)$ ) {
>    set $dir $1;
>    }
>  nginx   proxy_pass  bind  44 
>
>    .
> !
>
> Posted at Nginx Forum: 
> http://forum.nginx.org/read.php?21,30554,30554#msg-30554
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
 ,  .
icq 77556665
e-mail boris@xxxxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.