-
-
Notifications
You must be signed in to change notification settings - Fork 13.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
redirect by location in responseheader #3216
Comments
You can change your webpage logic to generate the location header. |
Ok thank you, but what if I can not change the webpage header (e.g., it is not my webpage)? |
he could - similar to: he should still be able to set the port too, right? |
I found this hint:
|
Try this config. |
@fatedier , thank you. I tried this already, but it just changes the host and not the port. He takes the port form "plugin_local_addr" instead. I could not finde where I can access the code to fix that or why he takes the port from there. |
a configuration now works with:
but this does not solve all problems. i also have like: @cedricbieder |
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close. |
Bug Description
Hello, I am getting an annoying bevahior by one of my client targets.
I want to tunnel a https page:
The page is running on port 82, by my frpc and frps .ini I forward that page to subdomain.mydomain:8082.
I get the login in page of the targt. But after I login the page always jump to subdomain.mydomain:82.
I could observe that before that redirect I get a location: subdomain.mydomain:82. in the response header by the page.
I tried something like host_header_rewrite, but that seems to have no impact at all.
So my question. Is there an opportunity I can block this redirect? or I can change the response header (on frpc or frps)?
Or do you think I have to fix this on the target webpage?
Thank you for your support and project.
frpc Version
0.45
frps Version
0.45
System Architecture
linux/amd64
Configurations
[common]
server_addr = myDomain
server_port = 8082
authentication_method = token
token =
log_level = trace
user = no_test2
[23]
type = https
plugin = https2https
subdomain = e7b65b443b14cb26a76f0660
plugin_local_addr = targetHost:82
plugin_crt_path = <path_to_cert>
plugin_key_path = <path_to_cert>
Logs
No response
Steps to reproduce
...
Tbh I dont know how to reproduce this bug, it happens only at this one webpage.
Affected area
The text was updated successfully, but these errors were encountered: