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

Posted mouseleo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Debian Buster Nginx 布署 Brophp 项目(类 Thinkphp)相关的知识,希望对你有一定的参考价值。

配置文件

/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)的主要内容,如果未能解决你的问题,请参考以下文章