yum install httpd-tools -y htpasswd -c /data/kibana/kibana.passwd admin 输入密码
server {
listen 80 ;
server_name elk.oaroad.com;
location / {
proxy_pass http://172.24.97.126:5601$request_uri;
auth_basic "User Authentication";
auth_basic_user_file /data/kibana/kibana.passwd;
}
access_log /www/wwwlogs/oaroad.com.log log_json;
}
nginx -t nginx -s reload
你可能也喜欢————

本站已稳定运行 980 天