-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Question] Reverse proxying to a different location #1085
Comments
Hm, this might be tricky to fix. We'll see, it might be necessary to add an optional config field for this kind of setup. |
@ameshkov The logout is also broken |
AGH works correctly and knows nothing (and shouldn't know) about any additional HTTP configuration that users set up. Isn't there a possibility to manage HTTP redirections in nginx configuration? You should rewrite It would be very strange to add an additional configuration to AGH for this. |
Yeah, @szolin, you're right. It is possible to handle this on the nginx's side: |
I have added |
Marked this issue as "help wanted", maybe someone more experienced with nginx than I am, chimes in and helps. |
I have the same issue. |
AGH doesn't need to know anything about your redirections. This is the task of your proxy web server.
It's a rewrite rule that strips |
@szolin doesn't work |
What exactly doesn't work? Can you show HTTP requests, responses (with headers)? |
@szolin same thing as my original issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Would join this discussion. I had the same issues trying to rewrite from ADH
There are few points to be should be handled during changing WEB path:
Looks like relative URLs(no leading
so no problems so far (at least till somebody decide to add Cookies Path may be corrected by nginx (see Most tricky part is some URLs, e.g. HTTP GET There are few ideas:
PS: "ADH behind reverse proxy" looks like a quiet typical use case. Maybe it has sense to add this info (including nginx config sniplets) into documentation. |
@redrathnure thank you for the very nice explanation! Tbh, I like the second option more. It's always better to avoid adding new settings when it's possible:) I've filed a new issue about this, planned on v0.101: #1300 |
I use nginx to redirect https://domain.com/adguard to https://domain.com:[adguard listen port]. The new update causes adguard to give a 302 redirect to https://domain.com/login.html, which obviously fails since the actual login url is https://domain.com/adguard/login.html.
The text was updated successfully, but these errors were encountered: