nginx非法域名返回500配置

nginx非法域名返回500配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
listen 80 default;
return 500;
}

server {
listen 80  default;
listen 443  default_server;
server_name _;
ssl_certificate  /opt/nginx-proxy/etc/ssl/ppabc.cn.pem;
ssl_certificate_key  /opt/nginx-proxy/etc/ssl/ppabc.cn.key;
return 500;
}



server {
listen 80  default;
listen 443  default_server;
server_name _;
ssl_certificate      /data/nginx/conf/vhost/ssl/ppabc.cn.pem;
ssl_certificate_key  /data/nginx/conf/vhost/ssl/ppabc.cn.key;
return 500;
}
© 版权声明
THE END
喜欢就支持以下吧
点赞0 分享