nginx 配置拒绝 IP 和没有配置的域名访问

Posted on Posted in linux

nginx 配置拒绝 IP 和没有配置的域名访问

server { 
    listen 80 default;
    server_name _;
    rewrite ^/(.*)$ https://liuhonghe.me/$1 permanent;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 2 =