server {
listen 80;
root /var/www/html/dms/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name www.abc.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
添加回答
举报
0/150
提交
取消