【发布时间】:2018-11-23 08:25:27
【问题描述】:
我在 Tomcat 服务器上运行了一个小型 Vaadin/Rapidclipse 应用程序。作为反向代理,我使用 Traefik v1.7.4。 如果我通过http://159.69.121.213:8080/TestTraefik/ 直接连接到服务器,一切正常。
http://159.69.121.213:8080/TestTraefik/ 是公开的,您可以直接使用它进行测试。
如果我通过 mycob.int.yyyy.com 连接该网站,但它会立即显示“会话已过期”。
traefik.toml
################################################################
# Global configuration
################################################################
logLevel = "DEBUG"
defaultEntryPoints = ["http", "https"]
################################################################
# Entrypoints configuration
################################################################
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/etc/letsencrypt/live/int.yyyy.com/fullchain.pem"
keyFile = "/etc/letsencrypt/live/int.yyyy.com/privkey.pem"
[file]
filename = "./rules.toml"
watch = true
################################################################
# Traefik logs configuration
################################################################
[traefikLog]
filePath = "log/traefik.log"
################################################################
# Access logs configuration
################################################################
[accessLog]
filePath = "/path/to/log/log.txt"
################################################################
rules.toml
[frontends]
[frontends.mycob2]
entrypoints = ["https"]
backend = "mycob"
passHostHeader = true
[frontends.mycob2.routes.all]
rule = "Host:mycob.int.yyyy.com;AddPrefix:/TestTraefik"
[backends]
[backends.mycob]
[backends.mycob.servers.tomcat]
url = "http://159.69.121.213:8080"
我可以想象问题来自 PUSH 连接。在 Session Expired on tomcat8 behind apache2 ProxyPass with Apache Proxy 的帖子中,似乎添加 ProxyPassReverseCookiePath 带来了解决方案,但我找不到 Traefik 的这样一个选项。
知道我做错了什么吗?
提前谢谢你。
【问题讨论】:
标签: vaadin vaadin7 traefik rapidclipse