Как избежать использования subs_filter в nginx - PullRequest
0 голосов
/ 05 ноября 2018

может кто-нибудь подсказать, как переписать последние 2 строки в конфигурации Nginx

    location ^~ /kubeapps {
    rewrite ^/kubeapps(/.*)$ $1 break;

    proxy_pass http://<some_ip>:<port>;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;


    # need to replace these lines with some 
    # other directives with the same functionality

    subs_filter href=/ href=http://<some_ip>:<port>/kubeapps;
    subs_filter src=/ src=http://<some_ip>:<port>/kubeapps;
     }

в какую-то другую форму? Причина в том, что я не могу использовать модуль, обеспечивающий директивы subs_filter .

Thx

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...