rewrite ^/rss\.xml$ /data/rss.php;
rewrite ^/sitemap\.xml$ /data/sitemap.php;
location @handler {
rewrite ^/(.*)$ /data/engine.php?a=$1;
}
location / {
try_files $uri $uri/ @handler;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9009;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
string(668) "WITH a as ( SELECT `id` FROM `sd_video` INDEXED BY "INDEX_TUBE_CAT_ID" WHERE (`categoryId` = 1) AND (`date` < 1502557282) AND (`id` > 39) ORDER BY `id` LIMIT 4 ), b as ( SELECT `id` FROM `sd_video` INDEXED BY "INDEX_TUBE_CAT_ID" WHERE (`categoryId` = 1) AND (`date` < 1502557282) ORDER BY `id` LIMIT (SELECT 4 - COUNT(*) FROM a) ) SELECT a.* FROM a union SELECT b.* FROM b"
\u0421\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438