优艾设计网

ngnix 不打开文件而是下载文件怎么回事?

优艾设计网 https://www.uibq.com 2023-04-17 20:18 出处:网络 作者:PS教程自学
#usernobody; worker_processes1;#error_loglogs/error.log; #error_loglogs/error.lo优艾设计网_Photoshop论坛gnotice; #error_loglogs/error.loginfo;#pidlogs/nginx.pid; events { worker_connections1024; } ht

#usernobody; worker_processes1;#error_loglogs/error.log; #error_loglogs/error.lo优艾设计网_Photoshop论坛gnotice; #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; } }}


halodog 2022-06-29 11:40

优艾设计网_平面设计

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


0

精彩评论

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