- 2025年05月12日
- 星期一
我的网站部分受auth_basic保护: location / { auth_basic Authorization Required; auth_basic_user_file .htpasswd; index app.php; try_files
我想通过提供deny / allow指令来保护nginx中的某些位置,但我不希望局外人知道位置被拒绝.我希望局外人获得404,而不是403 http代码.我的配置代码段是location /admin/ { uwsgi_pass myupstream1; include /path/to/uwsgi_params; allow 12