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

1 材料

  • debian buster
  • nginx
  • a project that develop base brophp

2 步骤

配置文件

/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)(/.+)$;
         }
}

posted on 2018-08-12 09:18  刘应杰  阅读(159)  评论(0编辑  收藏  举报

导航