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

[BUG] Redirects behind Sub-domain proxy are not working #39

Closed
Ponkhy opened this issue Aug 9, 2023 · 4 comments
Closed

[BUG] Redirects behind Sub-domain proxy are not working #39

Ponkhy opened this issue Aug 9, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Ponkhy
Copy link

Ponkhy commented Aug 9, 2023

Describe the bug
It seems like redirects behind a sub-domain proxy are not working properly. I have two services running behind the reverse proxy Kutt and Zipline, both have url short/redirect functions.
If a user tries to open a shorten url of either service, it does change the path behind the domain, but not the domain it should redirect to, that leads to 404 and other errors.
I haven't found anything to adjust the header or behavior.

Expected behavior
The user should be redirected to the appropriate site.

Host Environment (please complete the following information):

  • Arch: amd64
  • Device: VM
  • OS: Debian
  • Version 12
@Ponkhy Ponkhy added the bug Something isn't working label Aug 9, 2023
@tobychui
Copy link
Owner

tobychui commented Aug 9, 2023

Hi @Ponkhy,

I do not personally use Kutt or Zipline, can you provide a few examples of such redirection error and what they are suppose to redirects to? (Like the initial URL, the invalid redirected URL and the URL suppose to be redirected to and any info you think relevant / will help with our debugging)

It would be nice if you could include the browser network tracing dump as well if you know how to generate one. Thanks for raising this issue!

@Ponkhy
Copy link
Author

Ponkhy commented Aug 9, 2023

Hey @tobychui,

for some weird reason it seems to work now with Zipline, but it still remains with Kutt.

Shorten URL: https://url.myon.lu/nuxy
How it should redirect: https://cloud.myon.lu/d/26c57ade150f45889f74/?p=%2F&mode=grid
How it's been redirected with Zoraxy: https://url.myon.lu/d/26c57ade150f45889f74/?p=%2F&mode=grid

Network Trace (.har): https://cloud.myon.lu/f/f58a79be003f474daf70/

Many thanks!

tobychui added a commit that referenced this issue Aug 17, 2023
+ Added potential fixes for #34 and #39
+ Added better error handling for #43
@Ponkhy
Copy link
Author

Ponkhy commented Aug 21, 2023

Hey,

I roughly tested the latest commit 70adadf and it indeed seems to fix this problem.
Looking forward to the release, thank you very much!

Many thanks!

@tobychui
Copy link
Owner

Fixed in v2.6.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants