我已将 nginx 代理配置如下location /omnidb/ {proxy_pass http://xxxx:8000/omnidb_login/?next=/;proxy_http_version 1.1;proxy_set_header 升级 $http_upgrade;proxy_set_header
我已经配置了我的 nginx 代理,如下所示
location /omnidb/ {
proxy_pass http://x.x.x.x:8000/omnidb_login/?next=/;
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;
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 X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
sub_filter_once off;
sub_filter 'href="/' 'href="/omnidb/';
sub_filter 'src="/' 'src="/omnidb/';
sub_filter 'action="/' 'action="/omnidb/';
sub_filter 'content="/' 'content="/omnidb/';
sub_filter 'url("/' 'url("/omnidb/';
sub_filter 'url(\'/' 'url(\'/omnidb/';
proxy_redirect / /omnidb/;
}
但是当我访问 url https://ip:3000/omnidb/ 时,会出现此错误布局
在此处输入图片描述
我希望大家能够帮助我
非常感谢
我尝试在网上查找一些信息,但没有得到答案