首页 > Web开发 > 详细

Debian Buster Nginx 布署 Brophp 项目(类 Thinkphp)

时间:2018-08-12 10:51:21      阅读:152      评论:0      收藏:0      [点我收藏+]

配置文件

/etc/nginx/sites-available/pis

server {
         listen 80;
         root /mnt/code/pis/webroot;
         index index.php;
         server_name pis.testing;

        location / {
                 try_files $uri $uri/ =404;
         }

        location ~ \.php(/|$) {
                 include snippets/fastcgi-php.conf;
                 fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;

                fastcgi_split_path_info ^(.+\.php)(/.+)$;
         }
}

Debian Buster Nginx 布署 Brophp 项目(类 Thinkphp)

原文:https://www.cnblogs.com/mouseleo/p/9462012.html

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