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:




15  2012. 16:36  Alexander Kolesen
<kolesen.a@xxxxxxxxx> :
>> .
>>
>>     nginx,    
>> :   jpg   :
>> http://media-us01.()/sr/thumbs/*/*.jpg  
>>  (404 )     URL'
>> http://img.()/sr/thumbs/*/*.jpg (
>> http://img.domain.com/sr/thumbs/c/1413.jpg) ..   
>>    media-us01 -> img
>
>
> server {
>  listen 80;
>  server_name ~^media-us01.(?P<domain>.+)$;
>
>  location /sr/thumbs/ {
>    location ~ /sr/thumbs/[^/]+/[^/]+/[^/]+\.jpg$ {
>      root /path/to/your/files/;
>      error_page 404 = @img;
>    }
>  }
>
>  location @img {
>    return 301 http://img.$domain$uri;
>  }
>
> }
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

  • References:
      • From:
    • Re:
      • From: Alexander Kolesen

 




Copyright © Lexa Software, 1996-2009.