0

当我调用/api/v1/fooSilex 时,搜索匹配的路由/api/v1/foo而不是/foo. 我该如何解决?

我的 HHVM 配置:

VirtualHost {
    * {
        Pattern = .*
        RewriteRules {
            * {
                pattern = /api/v1/.?
                to = api/v1/index.php
                qsa = true
            }

            * {
                pattern = .?
                to = index.php
                qsa = true
            }
        }
    }
}
4

1 回答 1

0

我建议使用fastcgi而不是内置的网络服务器。您会发现更多关于您选择的任何网络服务器(apache、nginx 等)的文档,而不是我们的文档,而且我们正在慢慢地完全摆脱网络服务器业务。

于 2014-03-06T08:15:33.840 回答