File tree Expand file tree Collapse file tree 3 files changed +27
-4
lines changed Expand file tree Collapse file tree 3 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:none
2+
3+ ```
Original file line number Diff line number Diff line change @@ -58,11 +58,16 @@ resource "google_compute_url_map" "urlmap" {
5858
5959 host_rule {
6060 hosts = ["mysite.com"]
61- path_matcher = "allpaths"
61+ path_matcher = "mysite"
62+ }
63+
64+ host_rule {
65+ hosts = ["myothersite.com"]
66+ path_matcher = "otherpaths"
6267 }
6368
6469 path_matcher {
65- name = "allpaths "
70+ name = "mysite "
6671 default_service = google_compute_backend_service.home.self_link
6772
6873 path_rule {
@@ -81,6 +86,11 @@ resource "google_compute_url_map" "urlmap" {
8186 }
8287 }
8388
89+ path_matcher {
90+ name = "otherpaths"
91+ default_service = google_compute_backend_service.home.self_link
92+ }
93+
8494 test {
8595 service = google_compute_backend_service.home.self_link
8696 host = "hi.com"
Original file line number Diff line number Diff line change @@ -48,11 +48,16 @@ resource "google_compute_url_map" "urlmap" {
4848
4949 host_rule {
5050 hosts = ["mysite.com"]
51- path_matcher = "allpaths"
51+ path_matcher = "mysite"
52+ }
53+
54+ host_rule {
55+ hosts = ["myothersite.com"]
56+ path_matcher = "otherpaths"
5257 }
5358
5459 path_matcher {
55- name = "allpaths "
60+ name = "mysite "
5661 default_service = google_compute_backend_service.home.self_link
5762
5863 path_rule {
@@ -71,6 +76,11 @@ resource "google_compute_url_map" "urlmap" {
7176 }
7277 }
7378
79+ path_matcher {
80+ name = "otherpaths"
81+ default_service = google_compute_backend_service.home.self_link
82+ }
83+
7484 test {
7585 service = google_compute_backend_service.home.self_link
7686 host = "hi.com"
You can’t perform that action at this time.
0 commit comments