Code Monkey home page Code Monkey logo

Comments (5)

cym1102 avatar cym1102 commented on September 26, 2024

from nginxwebui.

Akimio521 avatar Akimio521 commented on September 26, 2024

配location的时候, 勾上Host参数应该就可以了

@.***

发件人: 秋澪Akimio

发送时间: 2024-02-26 17:14

收件人: cym1102/nginxWebUI

抄送: Subscribed

主题: [cym1102/nginxWebUI] [请求帮助]关于端口和IP的一些配置文件 (Issue #128)

比如我用a反向代了b服务器,我用c访问通过a反向代理的b服务,但是b服务器获取到的IP是a的,认为是a在访问他,其实我想让b获取到的是c的ip

还是刚刚我举例的情况,假设b服务的开放的端口是3000,我通过反向代理后其实是通过5000端口在访问b,但是b仍然认为是a在通过3000端口访问他,所以在设置跳转url时设置的端口是3000,我通过c访问后就变成了访问了a的3000端口,但问题是a上的3000端口并没有架设对应的服务,就导致了请求失败

因为我没有学过nginx.conf的详细配置教程,希望大佬教一我应该如何配置模板才能快速部署多个可以正确访问的反向代理代理配置

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

钩上Host参数并且设置为$host获取的还是docker网络的IP(我的nginxwebui的网络选择的是自己新建的docker网络)

from nginxwebui.

Akimio521 avatar Akimio521 commented on September 26, 2024

b应用获取到的是docker network的网关地址(172.18.0.1)

from nginxwebui.

cym1102 avatar cym1102 commented on September 26, 2024

from nginxwebui.

cym1102 avatar cym1102 commented on September 26, 2024

from nginxwebui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.