File tree 2 files changed +28
-2
lines changed
tencentcloud/services/cos
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,20 @@ resource "tencentcloud_cos_bucket" "bucket_with_static_website" {
236
236
website {
237
237
index_document = "index.html"
238
238
error_document = "error.html"
239
- redirect_all_requests_to = "http"
239
+ redirect_all_requests_to = "https"
240
+ routing_rules {
241
+ rules {
242
+ condition_error_code = "404"
243
+ redirect_protocol = "https"
244
+ redirect_replace_key_prefix = "/test"
245
+ }
246
+
247
+ rules {
248
+ condition_prefix = "/test"
249
+ redirect_protocol = "https"
250
+ redirect_replace_key = "key"
251
+ }
252
+ }
240
253
}
241
254
}
242
255
Original file line number Diff line number Diff line change @@ -247,7 +247,20 @@ resource "tencentcloud_cos_bucket" "bucket_with_static_website" {
247
247
website {
248
248
index_document = "index.html"
249
249
error_document = "error.html"
250
- redirect_all_requests_to = "http"
250
+ redirect_all_requests_to = "https"
251
+ routing_rules {
252
+ rules {
253
+ condition_error_code = "404"
254
+ redirect_protocol = "https"
255
+ redirect_replace_key_prefix = "/test"
256
+ }
257
+
258
+ rules {
259
+ condition_prefix = "/test"
260
+ redirect_protocol = "https"
261
+ redirect_replace_key = "key"
262
+ }
263
+ }
251
264
}
252
265
}
253
266
You can’t perform that action at this time.
0 commit comments