I have both PHP and Rails running on the same server. I used to have a rewrite rule at nginx.conf
location / {
index index.php;
}
and in case of URL like /foo/bar
/foo/bar/index.php
was served.
But now I have also Rails (Passenger) and with this rule I can't hit rails. How do I check if there exist index.php before and hit rails only if it does not.
Thanks.