【发布时间】:2012-10-11 21:56:44
【问题描述】:
我在同一台服务器上运行 PHP 和 Rails。 我曾经在 nginx.conf 有一个重写规则
location / {
index index.php;
}
如果 URL 像 /foo/bar /foo/bar/index.php 被提供。
但现在我也有 Rails(乘客),根据这条规则,我不能撞到铁轨。 如何检查之前是否存在 index.php 并仅在不存在时才点击 rails。
谢谢。
【问题讨论】:
标签: php ruby-on-rails nginx rewrite passenger