ngnix 不打开文件而是下载文件怎么回事 财富值92

2016-11-02 17:59发布

 #user  nobody; worker_processes  1;  #error_log  logs/error.log; #error_log  logs/error.log  notice; #error_log  logs/error.log  info;  #pid        logs/nginx.pid;   events {     worker_connections  1024; }   http {     include       mime.types;     default_type  application/octet-stream;     sendfile        on;     keepalive_timeout  65;      server {         listen 8089;         server_name localhost;          root D:workspace/hangjiayun;         index index.html index.htm index.php;          location / {             try_files $uri $uri/ /index.php;         }          location ~ .php$ {             try_files $uri =404;             include fastcgi.conf;             fastcgi_pass 127.0.0.1:9000;         }     }  } 
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
1条回答

应该是php文件没有解析,确保php-fpm正常启动的情况下,
看下你的nginx配置是否正确
fastcgi_pass 127.0.0.1:9000;