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

1 材料php

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

2 步骤nginx

配置文件web

/etc/nginx/sites-available/pisphp7

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

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

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

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

相关文章
相关标签/搜索