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

猜你喜欢

转载自www.cnblogs.com/mouseleo/p/9462012.html