我的 nginx conf 文件条目用于 redash
location /redash/ {
sub_filter ="/" ="/redash/";
sub_filter ="/static/ ="/redash/static/;
sub_filter ="/ldap/ ="/redash/ldap/;
sub_filter ="/saml/login ="/redash/saml/login;
sub_filter url(/static url(/redash/static;
sub_filter_once off;
sub_filter_types application/javascript text/css text/xml text/javascript application/json text/plain;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header SCRIPT_NAME /redash;
proxy_pass http://127.0.0.1:5000;
}
这对服务器来说有效,但当我刷新页面时。第一次访问时,我看到这样的网址:http://localhost/redash/
但在后续刷新时,redash 会被附加,多次刷新后,url 如下所示。
http://localhost/redash/redash/redash/redash/redash/redash/redash/redash/redash/
我的 redash 配置有问题吗?