nginx配置文件
自定义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;
}
}
个人博客:cscwdxgg.github.io
微信公众号:Asz918q
微信公众号:Asz918q