mashirochannel 最近的时间轴更新
mashirochannel

mashirochannel

V2EX 第 240104 号会员,加入于 2017-07-13 15:38:14 +08:00
mashirochannel 最近回复了
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   ·   我们的愿景   ·   实用小工具   ·   1688 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 16:42 · PVG 00:42 · LAX 09:42 · JFK 12:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.