nginx支持php访问的时变成下载而非打开php页面

 时间:2024-10-14 07:03:36

1、打开终端连接至centos服务器。

nginx支持php访问的时变成下载而非打开php页面

3、找到之前blog的配置文件。

nginx支持php访问的时变成下载而非打开php页面

5、检查语法,并且重启nginx。条目如下:server { l坡纠课柩isten 80; server_na罪焐芡拂me blog.test111.com; location / { root html/blog; index index.html index.htm; } location ~ .*\.(php|php5)?$ { root html/blog; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param HTTPS on; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; include fastcgi.conf; } }

nginx支持php访问的时变成下载而非打开php页面
  • win10如何关闭更新后自动重启
  • win10设置不了144hz
  • 火绒安全日志中安全工具类别在哪里
  • 如何在电脑里用两行代码打开电源的更改计划?
  • Windows10系统怎么关闭3D加速#校园分享#
  • 热门搜索
    速冻水饺怎么煮 胃不好怎么办 松花粉怎么吃 西北农林科技大学怎么样 苹果鼠标怎么连接 视频怎么旋转 脸红怎么回事 芙蓉花怎么养 鱼钩怎么绑 氢气球怎么充气