Comments (5)
from nginxwebui.
配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.
b应用获取到的是docker network的网关地址(172.18.0.1)
from nginxwebui.
from nginxwebui.
from nginxwebui.
Related Issues (20)
- 反向代理优化建议 HOT 13
- SMTP 邮件配置发送失败 HOT 8
- nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead HOT 2
- nginxWebUI正常运行,但是占用了全部端口
- 垃圾垃圾垃圾 没测试就拿出来显世 HOT 5
- 系统配置读取错误 HOT 1
- 4.1.6版本提示"/home/nginxWebUI/logs/error.log" failed HOT 3
- 证书界面错位 HOT 5
- cloudflare 证书申请成功,webui 显示失败 HOT 1
- 证书管理在4.2.0版本中,使用“DNS验证”无法获取证书 HOT 9
- 放开 tcp 反向代理的限制 HOT 6
- 容器中运行时,不能正常转发 HOT 1
- 更新到4.2.2版本后,出现用户名密码错误 HOT 1
- 启用配置报错“联系开发者”
- 启用配置页面报错“联系开发者” HOT 3
- 建议增加面板根路径,方便面板通过location反代 HOT 3
- 自动申请证书部分能不能像nginx proxy management那样是用使用token请求cloudflare的接口,而不是用Key
- 保存數據bug,導致所有【額外參數】重複 HOT 3
- 使用ibm-jdk8或者21获取验证码报错 HOT 1
- nginxWebUI-Pro docker 启动失败 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginxwebui.