LNMP-Nginx 防探测同IP站点设置

加粗文字

编辑文件

nano /usr/local/nginx/conf/nginx.conf

server {
        listen         80 default_server;
        listen         [::]:80 default_server;
        listen 443 ssl default_server;
        listen [::]:443 ssl default_server;
        server_name _;
        set $empty "";
        ssl_ciphers aNULL;
        ssl_certificate data:$empty;
        ssl_certificate_key data:$empty;
        return 444;
}

Last modification:April 26th, 2022 at 09:56 pm

Leave a Comment