Add NGINX redirect rules for erroneous API pages and test configuration#828
Open
Add NGINX redirect rules for erroneous API pages and test configuration#828
Conversation
osfameron
reviewed
Jul 2, 2025
Add NGINX redirect rules for erroneous API pages and test configuration Introduced new redirect rules in NGINX snippets to address erroneous API pages and added a localized test configuration for debugging.
a068118 to
5fa5c21
Compare
osfameron
reviewed
Jul 4, 2025
Collaborator
osfameron
left a comment
There was a problem hiding this comment.
doesn't seem to work, e.g
- 404 https://infratest.docs-test.couchbase.com/mobile/2.8.4/couchbase-lite-swift/Enumerations.html
- 404 https://infratest.docs-test.couchbase.com/mobile/2.8.4/couchbase-lite-swift/Structures.html
Looking at our rewrites, we don't use ~* at all... I wonder if we could use the approach used elsewhere, something like:
location ^~ /mobile/ {
rewrite ^/mobile/([^/]+)/(couchbase-lite-swift)/Enumerations.html$ /mobile/$1/$2/Enums.html redirect;
rewrite ^/mobile/([^/]+)/(couchbase-lite-swift)/Structures.html$ /mobile/$1/$2/Structs.html redirect;
}
(Not tested 🙈)
…m to the `mobile` section.
Contributor
Author
|
Okay, changed it target the mobile section. |
Contributor
Author
|
Works locally, but so did the last attempt. |
Contributor
Author
|
It also suggested moving the section further up in the config so that it gets matched earlier on, but let's try this first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added rules to trap and redirect the pages for API
EnumerationsandStructures.