-
Notifications
You must be signed in to change notification settings - Fork 14
/
complex-redirect.yml
62 lines (54 loc) · 2.19 KB
/
complex-redirect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
refracts:
- dsts:
- /faq.html: support.mozilla.org/products/firefox-lockwise/
- /addon/updates.json: mozilla-lockwise.github.io/addon/updates.json
- /: www.mozilla.org/firefox/lockwise/
srcs: lockwise.firefox.com
show:
- dsts:
- /faq.html/: support.mozilla.org/products/firefox-lockwise/
- /addon/updates.json/: mozilla-lockwise.github.io/addon/updates.json/
- /: www.mozilla.org/firefox/lockwise/
srcs: [lockwise.firefox.com]
status: 301
tests:
- http://lockwise.firefox.com/faq.html/: https://support.mozilla.org/products/firefox-lockwise/
- http://lockwise.firefox.com/addon/updates.json/: https://mozilla-lockwise.github.io/addon/updates.json/
- http://lockwise.firefox.com/: https://www.mozilla.org/firefox/lockwise/
nginx:
- |
server {
server_name lockwise.firefox.com;
location = /faq.html/ {
return 301 https://support.mozilla.org/products/firefox-lockwise//;
}
location = /addon/updates.json/ {
return 301 https://mozilla-lockwise.github.io/addon/updates.json/;
}
location = / {
return 301 https://www.mozilla.org/firefox/lockwise/;
}
}
validate:
- dsts:
- /faq.html/: support.mozilla.org/products/firefox-lockwise/
- /addon/updates.json/: mozilla-lockwise.github.io/addon/updates.json/
- /: www.mozilla.org/firefox/lockwise/
srcs: [lockwise.firefox.com]
status: 301
validation:
netloc: localhost
tests:
- http://lockwise.firefox.com/faq.html/ -> https://support.mozilla.org/products/firefox-lockwise/:
hops:
- 301 http://lockwise.firefox.com/faq.html/ -> https://support.mozilla.org/products/firefox-lockwise/ MATCHED
test-result: MATCHED
- http://lockwise.firefox.com/addon/updates.json/ -> https://mozilla-lockwise.github.io/addon/updates.json/:
hops:
- 301 http://lockwise.firefox.com/addon/updates.json/ -> https://mozilla-lockwise.github.io/addon/updates.json/ MATCHED
test-result: MATCHED
- http://lockwise.firefox.com/ -> https://www.mozilla.org/firefox/lockwise/:
hops:
- 301 http://lockwise.firefox.com/ -> https://www.mozilla.org/firefox/lockwise/ MATCHED
test-result: MATCHED
validate-result: SUCCESS