这样添加的内容不对?
server{
listen 80;
server_name abc.def.com; //在下面添加不对?nginx -t显示正确
if ($request_method !~* GET|POST|HEAD) {
return 403;
}
index index.html index.php;
root /home/abc;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
include enable-php.conf;
location /favicon.ico{
log_not_found off;
access_log off;
}
| 欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) | Powered by Discuz! X3.4 |