Re:

boris dolgov.name
20 08:02:10 MSK 2010


port_in_redirect

19  2010 . 23:04  Ruslan <nginx-forum at nginx.us> :
>  nginx  , tomcat  backend.    8111,   8180.  ,     302 redirect,  -     80- . ..   Location: http://localhost:8180/wicket/index,     nginx  http://www.my.site/wicket/index -- , ,    8111 .
>
> :
>
> location / {
>        rewrite         /flowplayer/(.*)    /flowplayer/$1 break;
>        rewrite         /pages/(.*)       /pages/$1    break;
>        rewrite         /wicket/(.*)      /wicket/$1   break;
>        rewrite         /(.*)          /wicket/$1   break;
>
>        proxy_pass     http://localhost:8180/;
>        #proxy_redirect   http://localhost:8180/ http://$host:$server_port/;
>        #proxy_redirect     default;
>        #proxy_redirect     off;
>        proxy_redirect     http://localhost:8180/     http://$host:8111/;
>        proxy_redirect     http://www.tvintime.info:8180/ http://$host:8111/;
>        proxy_redirect     http://tvintime.info:8180/   http://$host:8111/;
>        proxy_redirect     http://localhost/        http://$host:8111/;
>        proxy_redirect     /    /;
>
>        #port_in_redirect    off;
>
>        proxy_set_header  Host       $host;
>        ....
> }
>
>
>     proxy_redirect      .
>
>  -  ?  ?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,43148,43148#msg-43148
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
 ,  .
icq 77556665
e-mail boris at dolgov.name


nginx-ru