Re: , 302

Sergey Shepelev temotor gmail.com
5 23:18:40 MSK 2010


2010/2/5 tazija <nginx-forum at nginx.us>:
>    . ,  ,     (302)   2test.ru  www.2test.ru  www.2test.ru/app.       www.2test.ru
>
> server {
>  listen 82;
>  server_name www.2test.ru 2test.ru;
>
>  rewrite ^/$ /tomcat last;
>
>  if ($http_host !~ "^www\.test2\.ru$") {

   $http_host  if.    server_name.

>    rewrite ^(.*) http://www.2test.ru$1;

   ,   ,  
 (  ).

>  }}
>
>  # Main location
>  location /tomcat {
>    proxy_pass http://test:8082/app;
>    client_max_body_size    10m;
>    client_body_buffer_size  128k;
>    proxy_connect_timeout   190;
>    proxy_send_timeout     190;
>    proxy_read_timeout     190;
>    proxy_buffer_size     4k;
>    proxy_buffers       4 32k;
>    proxy_busy_buffers_size  64k;
>    proxy_temp_file_write_size 64k;
>  }
>  location /static {
>    proxy_pass http://test:8082/static;
>    expires 10y;
>  }
>  location /theme {
>    proxy_pass http://test:8082/theme;
>    expires 10y;
>  }
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,51072,51072#msg-51072
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>


nginx-ru