首页 > Web开发 > 详细

nginx解析php

时间:2018-03-01 12:43:32      阅读:210      评论:0      收藏:0      [点我收藏+]
  • nginx解析php

server {    

    listen 80;    

    server_name localhost;    

    index index.html index.htm index.php;    

     root /opt/nginx/html;

    location /{        

         root /opt/nginx/html;    

   }

   location ~ .*\.(php|php5)?$ {      

        include fastcgi.conf;  

       #fastcgi.conf 有一行fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        

       #fastcgi_pass unix:/tmp/www.sock;        

       fastcgi_pass 127.0.0.1:12091;        

       fastcgi_index index.php;

    }

}

nginx解析php

原文:https://www.cnblogs.com/hanxiaohui/p/8487647.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!