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

Проблема с конфигом #192

Closed
MikeVL opened this issue May 23, 2024 · 2 comments
Closed

Проблема с конфигом #192

MikeVL opened this issue May 23, 2024 · 2 comments

Comments

@MikeVL
Copy link

MikeVL commented May 23, 2024

Есть примерно такой конфиг

default:
  - { route: "^/(.*)", dest: "@temp https://site1.ru/" }
example1.ru:
  - { route: "^/(.*)", dest: "@perm https://site2.ru/" }
example2.ru:
  - { route: "^/(.*)", dest: "@perm https://site2.ru/" }

При запросе сайта example1.ru рандомно делает редирект то на site2.ru, то на site1.ru, хотя нужно чтобы было только site2.ru

Тоже самое с example2.ru

Тестировал на версии 1.1.0 и 1.2.0

umputun added a commit that referenced this issue May 23, 2024
- Drop default server match if a concrete server match is found
- Add test case to validate behavior
umputun added a commit that referenced this issue May 23, 2024
- Drop default server match if a concrete server match is found
- Add test case to validate behavior
@umputun
Copy link
Owner

umputun commented May 23, 2024

Thanks for the report. This is indeed a bug in the server's match/discovery process. I was able to reproduce it with a small test emulating your config. reproxy was returning both default and concrete routes, then randomly selecting one of them.

#193 should resolve the issue. Please try the ":master" image and let me know if everything is satisfactory.

@MikeVL
Copy link
Author

MikeVL commented May 23, 2024

Работает!

@umputun umputun closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants