我一直在尝试使用Restler php api.
我在我的网络服务器的根目录下有一个api.php文件:
<?php
require_once('lib/restler.php');
class Say {
function hello($to='world') {
return "Hello $to!";
}
}
$r = new Restler();
$r->addAPIClass('Say');
$r->handle();
?>
Run Code Online (Sandbox Code Playgroud)
我尝试使用最简单的示例GET api.php/say/hello,但是nginx继续回复我的错误404.在日志中我看到"不是目录".
我想这是我的nginx conf的一个问题,但找不到任何关于它的具体信息.任何的想法?