-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Docs: Clarify from-to-www
redirect direction.
#11682
Conversation
This was not clear to me when reading the docs whether the ingress will redirect from non-www to with-www or the reverse. It's also not very clear from just grepping around the codebase. I found the answer by reading from this reddit link: https://www.reddit.com/r/kubernetes/comments/pbl033/k8s_ingress_redirecting_www_to_nonwww_domains/ So, to save time for other people doing the same, which I assumes is a lot of people since it's a common scenario, this little revision in the docs is warranted.
Welcome @chakrit! |
Hi @chakrit. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
/triage accepted @longwuyuan Unhold if LGTY. |
/cherry-pick release-1.10 |
/cherry-pick release-1.11 |
I'm burned out today, will comeback in a day or so and try looking at the tests and adding that paragraph if someone hasn't already added it. Thanks! |
From
|
thanks. my test was wrong. |
from-to-www
redirect direction.
I implemented the suggestions, hope this is fine for you @chakrit! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chakrit, Gacko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@longwuyuan Can we get this PR merged in its current state? |
Hi yes is my opinion because you added that helpful description . Thank you.
…On Mon, 29 Jul, 2024, 13:12 Marco Ebert, ***@***.***> wrote:
@longwuyuan <https://github.com/longwuyuan> Can we get this PR merged in
its current state?
—
Reply to this email directly, view it on GitHub
<#11682 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWRVIDJOGJFVJBBROXTZOXXAHAVCNFSM6AAAAABLP7OH5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVGIZDSMJXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
/unhold |
@Gacko: new pull request created: #11692 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@Gacko: new pull request created: #11693 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hey guys, it looks like new documentation totally wrong: But in reality it should be like this: Waste about 3 hours of life before got it. |
It's working in both ways. We tested this. See my comments from above. 🙂 |
But yeah, thinking about it, it's not really the best. Feel free to open a PR! |
Yep, but the problem is in the description. Once again, reading documentation literally "if .spec.rules.host is configured with a value like www.example.com, then this annotation will redirect to example.com." But it will NOT redirect to example.com, it will redirect FROM example.com TO www.example.com. That's the trick. And yes we can see it in your comments from above. I'll open PR, thank you. |
Opened PR #11712 (comment) |
This was not clear to me when reading the docs whether the ingress will redirect from non-www to with-www or the reverse. It's also not very clear from just grepping around the codebase. I found the answer by reading from this reddit link:
https://www.reddit.com/r/kubernetes/comments/pbl033/k8s_ingress_redirecting_www_to_nonwww_domains/
So, to save time for other people doing the same, which I assumes is a lot of people since it's a common scenario, I believe this little revision in the docs is warranted.
What this PR does / why we need it:
Update the docs to clarify, when setting
from-to-www-redirect
, which direction of redirection is going to be performed.Types of changes
Which issue/s this PR fixes
How Has This Been Tested?
Ran
mkdocs
and things seemed fine.Checklist: