Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用traefik代理 subdirectory会404但subdomain正常 #907

Open
wujohn1990 opened this issue Jul 29, 2019 · 1 comment

Comments

@wujohn1990
Copy link

commented Jul 29, 2019

用了traefik,配置如下

[file]
watch = true
[backends]
[backends.backend1]
[backends.backend1.servers.server1]
url = "http://172.17.0.3:9000" ## leanote docker地址
[frontends]
[frontends.frontend1]
backend = "backend1"
passHostHeader = true
[frontends.frontend1.routes.route1]
rule = "PathPrefix:/test" ## 这个会404
#rule = "Host:test.localhost" ## 这个没问题

如果用 test.localhost 访问,是没有问题的。
但如果用 localhosts/test , 会404,而且看着是leanote的404 page

image

谢谢

@wujohn1990

This comment has been minimized.

Copy link
Author

commented Jul 30, 2019

恩,看来还是绝对路径的问题
#194
#228
#465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.