优艾设计网

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

优艾设计网 https://www.uibq.com 2023-04-24 15:51 出处:网络 作者:PS教程
#usernobody; worker_processes1;#error_loglogs/error.log; #error_loglogs/error.lognotice; #error_loglogs/error.优艾设计网_设计百科loginfo;#pidlogs/nginx.pid; events { worker_connections1024; } http {

#usernobody; worker_processes1;#error_loglogs/error.log; #error_loglogs/error.lognotice; #error_loglogs/error.优艾设计网_设计百科loginfo;#pidlogs/nginx.pid; events { worker_connections1024; } http { include mime.types; default_typeapplication/octet-stream; sendfileon; keepalive_timeout65;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; } }}


渡辺__聖人 优艾设计网_电脑技术 2022-09-11 12:40

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


0

精彩评论

暂无评论...
验证码 换一张
取 消