来源: 最后更新:24-06-02 12:09:35
## example admin site
server {
server_name $HOSTNAME.dashboard.example.com;
listen 80;
# http://serverfault.com/questions/242218/how-to-disable-http-basic-auth-in-nginx-for-a-specific-ip-range
satisfy any;
allow 210.22.143.202/32;
deny all;
auth_basic "example Restricted";
auth_basic_user_file htpasswd;
error_page 404 /404;
error_page 503 /503;
#charset koi8-r;
access_log logs/dashboard.access.log;
error_log logs/dashboard.error.log;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_redirect default;
proxy_set_header X-Real-IP $remote_addr;
}
location /assets {
alias $DEPLOY_ROOT_DIR/DashboardServer/assets/;
}
}
标签: DashboardServer htpasswd auth_basic_user_file
怎么解决留守儿童问题如何解决留守儿童问题壮大县域经济减少留守儿童数量
李京霖悦然医美:选择什么吸脂方式更好 实探安徽铜陵坍塌居民楼:建成二十余年历经三次改造,仍未阻止悲剧发生 2024济宁太白湖新区飞机防治时间+区域 济宁太白湖新区疫情防控 2024第36届潍坊金宝汽车文化博览会时间