自定义nginx基本配置文件conf.d
server {
listen 80;
server_name test.com;
root /var/www/hw;
location / {
index index.php; #跳转到test.com/index.php
autoindex on;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
#fastcgi_intercept_errors on;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}