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