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: proxy _pass



   server:

rewrite ^(/[^/.]+)$     $1/ permanent;

< ="Anton">
> Hi.
>
>   :  http://www.site.ru/dir   
> http://www.site.ru/dir/.   index.php.
>  nginx   .    :
>
>    server {
>         listen      80;
>         server_name site.ru www.site.ru;
>         access_log  /var/www/cs/logs/access.log my;
>         location / {
>             proxy_pass          http://localhost:81;
>             proxy_set_header    X-Real-IP $remote_addr;
>             client_body_buffer_size 128k;
>             proxy_buffer_size           4k;
>             proxy_buffers               8 32k;
>             proxy_busy_buffers_size     64k;
>             proxy_temp_file_write_size  64k;
>         }
>         location ~* ^.+\.(jpg|jpeg|gif|png|css)$ {
>             root        /var/www/site/www;
>         }
>     }
>
>    dir -> dir/  . 
> proxy_redirect     http://localhost:81/ /;
>   .
>
>   ?
> --
> engineer
>


-- 
AleXXX V. NovikoFF



 




Copyright © Lexa Software, 1996-2009.