V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  mashirochannel  ›  全部回复第 1 页 / 共 1 页
回复总数  4
2018-01-02 09:54:26 +08:00
回复了 mashirochannel 创建的主题 NGINX nginx 代理中 jsp 里 basepath 路径的问题
@salmon5 还是不行呢
2017-12-28 14:08:16 +08:00
回复了 mashirochannel 创建的主题 NGINX nginx 代理中 jsp 里 basepath 路径的问题
@salmon5 表达能力确实很差。。
2017-12-28 14:07:30 +08:00
回复了 mashirochannel 创建的主题 NGINX nginx 代理中 jsp 里 basepath 路径的问题
我是做了两次代理 第一次
服务器 A nginx 到 tomcat docker (因为 A 上有多个 tomcat 实例,所以要反代)
server {
listen 9090;
server_name xxx.xxx.com;
location / {
proxy_redirect off;
proxy_set_header Host $host;
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-Port $server_port;
proxy_pass http://xxx:8080;
}

}
服务器 B
第二次
listen 80 ;

server_name xxx2.xxx.com;

location / {
proxy_redirect off;
proxy_set_header Host xxx.xxx.com;
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_pass http://xxx.xxx.com:9090;
}
如果直接从 B 带到 A 的 tomcat 是可以的,但是代了两次就不行了
2017-10-22 23:50:24 +08:00
回复了 mashirochannel 创建的主题 问与答 putty 生成的密钥是不是只能在 putty 上用
@xupefei 好吧,谢谢提醒
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2450 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 14:15 · PVG 22:15 · LAX 07:15 · JFK 10:15
Developed with CodeLauncher
♥ Do have faith in what you're doing.