【发布时间】:2015-09-04 02:13:19
【问题描述】:
我正在使用 MAMP + nginx + phalcon 构建网站。我已经设置好所有东西并且 phalcon 正在工作,但它只看到 IndexController 和 indexAction。如果我添加更多控制器并尝试导航到它们,我会收到 404 错误。此外,如果我向 IndexController 添加另一个操作,我将无法访问它,并且再次收到 404 错误。这是我的 nginx 配置文件:
server {
listen 7888 default_server;
root "/dev/testing/public";
location / {
index index.html index.php;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
我的 index.php 与 phalcon 文档中的给定索引相同。 任何建议/见解将不胜感激。
【问题讨论】: