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]

rewrite



, nginx-ru!

, nginx - apache2.

 

img.site.ru nginx. nginx img.site.ru/i/rating/*.png , , http://www.site.ru/img.php?rating=*

 

:

 

server {

listen 80;

server_name img.site.ru www.img.site.ru;

 

expires max;

add_header Cache-Control public;

access_log off;

 

location ~* ^.+\.(bmp|gif|jpg|jpeg|ico|png|swf|tiff)$ {

root /var/www/vhosts/site.ru/subdomains/img/httpdocs;

if (!-f $document_root${uri}) {

rewrite ^/i/rating/(.*)\.png$ http://www.site.ru/img.php?rating=$1 last;

break;

}

}

}

 

? - .

.

 

--

,



 




Copyright © Lexa Software, 1996-2009.