Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx 无法分发 #15

Closed
a740122 opened this issue Jun 10, 2015 · 3 comments
Closed

Nginx 无法分发 #15

a740122 opened this issue Jun 10, 2015 · 3 comments

Comments

@a740122
Copy link

a740122 commented Jun 10, 2015

其他PHP 分发都正常,只有芒果云不能用,
Apache 分发正常,但期望的是可以由Nginx 分发,效率也比较高

@kalcaddle
Copy link
Owner

其他php能用?kod不能用,不太明白是什么情况,最好说详细一点。

@a740122
Copy link
Author

a740122 commented Jun 20, 2015

按照这样的设定其他平台的PHP可以正常分发,
以下是nginx 的设定

server {
listen 8000;
#server_name ${URL};
error_log /var/log/nginx/error.log;
access_log off;
root /var/www/KODE;

client_max_body_size 0;
client_body_buffer_size 128k;

location / {
    index index.php;
}

location ~ \.php$ {
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_buffering off;
    fastcgi_read_timeout 600;
    fastcgi_send_timeout 600;
    include fastcgi_params;
     fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

}

@kalcaddle
Copy link
Owner

没遇到该情况,明显是服务器配置问题,你访问一个测试php文件看看就知道了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants