Nginx 重定向

301 重定向

    location / {
        return 301 https://$host$request_uri;
    }

禁止ip地址访问

server {
        listen 80 default_server;
        return 500;
}
posted @ 2022-12-23 08:22  Star-Hitian  阅读(35)  评论(0编辑  收藏  举报