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:



 .

14  2009 . 13:36  Igor Sysoev <is@xxxxxxxxxxxxx> :
> On Thu, May 14, 2009 at 01:25:55PM +0300, M.Yarik wrote:
>
>>   , 
>>
>> location ~* 
>> ^.+\.(jpg|jpeg|gif|mp3|png|avi|vob|mpg|mpeg|mp4|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$
>> {
>>         proxy_cache site;
>>         proxy_cache_valid 200 302 20m;
>>         proxy_cache_valid 301 1h;
>>         proxy_cache_valid 404 1m;
>>         proxy_cache_use_stale error timeout invalid_header
>> http_500 http_502 http_503 http_504;
>>         proxy_pass http://192.168.0.11/;
>>         root /var/www/html;
>>     }
>>
>>   
>>  nginx: [emerg]: "proxy_pass" may not have URI part in
>> location given by regular expression, or inside named location, or
>> inside the "if" statement, or inside the "limit_except" block in
>> /usr/local/nginx/etc/nginx.conf:103
>>
>>     ?
>
> -         proxy_pass http://192.168.0.11/;
> +         proxy_pass http://192.168.0.11;
>
>> 14  2009 . 12:44  Igor Sysoev <is@xxxxxxxxxxxxx> :
>> > On Thu, May 14, 2009 at 12:26:26PM +0300, M.Yarik wrote:
>> >
>> >>  .
>> >>      ,  
>> >>  :
>> >> ........
>> >> proxy_cache_key "$scheme://$host$uri$is_args$args:";
>> >> proxy_cache_path /usr/local/nginx/cache levels=1:2 keys_zone=site:20m
>> >> inactive=20m;
>> >> proxy_cache site;
>> >> proxy_cache_valid 200 302 20m;
>> >> proxy_cache_valid 301 1h;
>> >> proxy_cache_valid 404 1m;
>> >> proxy_cache_use_stale error timeout invalid_header http_500 http_502
>> >> http_503 http_504;
>> >> .........
>> >>     ,   
>> >>  ̣   , .
>> >>     :
>> >> location ~* 
>> >> ^.+\.(jpg|jpeg|gif|mp3|png|avi|vob|mpg|mpeg|mp4|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$
>> >> {
>> >>      proxy_cache site;
>> >>      proxy_cache_valid 200 302 20m;
>> >>      proxy_cache_valid 301 1h;
>> >>      proxy_cache_valid 404 1m;
>> >>      proxy_cache_use_stale error timeout invalid_header http_500
>> >> http_502 http_503 http_504;
>> >
>> >       proxy_pass ...
>> >
>> >>      root /var/www/html;
>> >>     }
>> >>     .
>> >>           
>> >>  ?
>> >>  .
>> >> --
>> >>    !
>> >
>> > --
>> >  
>> > http://sysoev.ru
>> >
>> >
>>
>>
>>
>> --
>>    !
>
> --
>  
> http://sysoev.ru
>
>



-- 
   !

  • References:
      • From: M.Yarik
    • Re:
      • From: M.Yarik

 




Copyright © Lexa Software, 1996-2009.