小编Вит*_*лёв的帖子

pgadmin4 无法在 nginx 后面的特定位置工作

我遇到了一些麻烦: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)

我可能需要一些具体的重写吗?

nginx pgadmin-4

8
推荐指数
2
解决办法
9480
查看次数

标签 统计

nginx ×1

pgadmin-4 ×1