自定义401页面不提示在Nginx上输入凭据

我的网站部分受auth_basic保护: location / { auth_basic Authorization Required; auth_basic_user_file .htpasswd; index app.php; try_files

安全性 – 如何在nginx上拒绝使用404

我想通过提供deny / allow指令来保护nginx中的某些位置,但我不希望局外人知道位置被拒绝.我希望局外人获得404,而不是403 http代码.我的配置代码段是location /admin/ { uwsgi_pass myupstream1; include /path/to/uwsgi_params; allow 12

返回顶部