Skip to content

Commit 5fa5c21

Browse files
committed
Remove NGINX test configuration.
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.
1 parent 304eac9 commit 5fa5c21

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

etc/nginx/snippets/rewrites.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,14 @@ location ^~ /admin/admin/ {
242242
# final redirect to archives
243243
rewrite ^/admin/(.*)$ $scheme://docs-archive.couchbase.com/docs-3x/$1 permanent;
244244
}
245+
246+
# Send some of the erroneous API pages to their correct pages
247+
248+
location ~* ^/mobile/([^/]+)/([^/]+)/Enumerations\.html$ {
249+
return 301 /mobile/$1/$2/Enums.html;
250+
}
251+
252+
location ~* ^/mobile/([^/]+)/([^/]+)/Structures\.html$ {
253+
return 301 /mobile/$1/$2/Structs.html;
254+
}
255+

0 commit comments

Comments
 (0)