我試圖設置一個NGINx服務器來與Phalcon PHP框架一起工作。 到目前爲止,我一直在尋找幫助的互聯網上,但我無法找到任何東西...如何在Nginx配置文件中配置Phalcon
我的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;
}
什麼要補充它爲了讓多爾康工作? 謝謝。
官方配置不工作對我也......還在尋找一個解決方案。 – daSong