Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx и запросы типа .js?random
напишите вот так:
location ~*
^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
root /home/username/data/www/site.ru;
access_log /home/httpd-logs/site.ru.access.log;
try_files $request_uri @fallback;
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,146504,146534#msg-146534
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|