我遇到了一些麻烦:pgadmin 在位置 / 的 nginx 后面工作得很好,但在位置 /pgadmin 后面就不行了 工作很好:
location / {
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:5050;
}
Run Code Online (Sandbox Code Playgroud)
不会工作:
location /pgadmin {
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:5050;
}
Run Code Online (Sandbox Code Playgroud)
我可能需要一些具体的重写吗?