-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
reverse proxy --to with a ipv6 address is broken #3029
Comments
Thanks for opening an issue! We'll look into this. I've just tried it and things are working for me. It's not immediately clear to me what is going on, so I'll need your help to understand it better. (My ISP doesn't support IPv6 so keep that in mind for reproduction instructions.) Ideally, we need to be able to reproduce the bug in the most minimal way possible. This allows us to write regression tests to verify the fix is working. If we can't reproduce it, then you'll have to test our changes for us until it's fixed -- and then we can't add test cases, either. I've attached a template below that will help make this easier and faster! It will ask for some information you've already provided; that's OK, just fill it out the best you can. 👍 I've also included some helpful tips below the template. Feel free to let me know if you have any questions! Thank you again for your report, we look forward to resolving it! Template
Helpful tips
Example of a tutorial: Create a config file: |
1. Environment1a. Operating system and versiontwo Debian 10 LXC Container on Proxmox. One with caddy2 and one with Apache2. 1b. Caddy version (run
|
I won't have time to set up an Apache server in the near future, but I have a hunch that Apache is misinterpreting the Everything I can see from testing IPv6 on my end, and adding debug prints/logs shows the correct values in the correct places. If you could invest more effort into where the bug lies, that'd be helpful for sure. A good place to start would be to enable debug logging and check what Apache is getting for the Host header. |
thx i think you're right it's a apache problem and not from caddy. |
in the follow command:
reverse-proxy --from example.com --to [fd1f:4614:ef30::204]:80
The webserver at the end of fd1f:4614:ef30::204 answer with "400 Bad Request" and say:
Apache/2.4.38 (Debian) Server at example.com Port 204
the port is the last 2 bytes of the ip address. If i use a fqdn it works fine.
The text was updated successfully, but these errors were encountered: