随笔分类 -  nginx

摘要:location / { set $accessip true; if ( $http_x_forwarded_for = '192.168.100.100' ) {set $accessip false;} if ( $accessip = 'false' ) {return 403;} if ( 阅读全文
posted @ 2025-06-17 15:46 day959 阅读(41) 评论(0) 推荐(0)
摘要:禁止访问目录下的文件 location ~ /Logs/ { deny all; return 403; } 301跳转 server { listen 80; server_name www.baidu.com; return 301 https://www.baidu.com$request_u 阅读全文
posted @ 2025-03-04 15:25 day959 阅读(12) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_36285943/article/details/120323479 阅读全文
posted @ 2022-09-21 19:14 day959 阅读(23) 评论(0) 推荐(0)