если я верно понял то:
location ~ ^/[^/]*$ {
if (-f /home/site/site.ru/docs/cache/nginx/index.html) {
rewrite ^(.+)$ /index.html last;
break;
}
rewrite ^(.+)$ /index.php?id=1 last;
}
почему кешете не через proxy_cache? это ведь удобнее
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,69889,70128#msg-70128