server {
        listen 15601;
        location / {
                proxy_pass http://192.168.4.50:5601;
                index index.php index.html index.htm;
                auth_basic "elk auth";
                auth_basic_user_file /usr/local/nginx/conf/htpasswd;
             }
        location /xixi/ {
                proxy_pass http://192.168.4.50:5601/;  主要是后面这里要加/,不然404
                index index.php index.html index.htm;
             }
        }

https://www.cnblogs.com/kevingrace/p/6566119.html

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注