我正在尝试设置Nginx服务器以使用Phalcon PHP Framework.
到目前为止,我一直在寻找互联网上的帮助,但我找不到任何东西……
我的conf文件是:
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/Nginx/www;
index index.PHP index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/Nginx/naxsi.rules
}
location /doc/ {
alias /usr/share/doc/;
autoindex on;
allow 127.0.0.1;
deny all;
}
为了使Phalcon有效,应该添加什么?
谢谢.
解决方法:
这是官方phalcon Nginx配置的链接.
http://docs.phalconphp.com/en/latest/reference/nginx.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。