1389 lines
50 KiB
JSON
1389 lines
50 KiB
JSON
{
|
|
"all_fields": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only me",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url" : "/*"
|
|
},
|
|
{
|
|
"name": "only 1234",
|
|
"client_ip": "1.2.3.4",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
],
|
|
"log_delivery": {
|
|
"enabled": false
|
|
}
|
|
},
|
|
"domain_different_protocol": {
|
|
"name": "domain_different_protocol",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "https", "certificate": "san"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"wildcard_path_no_slash": {
|
|
"name": "caching_empty",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name": "default",
|
|
"request_url": "*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"wildcard_path_with_slash": {
|
|
"name": "caching_empty",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name": "default",
|
|
"request_url": "/*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"caching_empty": {
|
|
"name": "caching_empty",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name": "default",
|
|
"request_url": "/*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"multiple_origin_wildcard_caching": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "default rule",
|
|
"request_url": "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
},
|
|
{
|
|
"origin": "mywebsite2.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "images rules",
|
|
"request_url": "/images/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}
|
|
],
|
|
"caching_list": [{"name": "default",
|
|
"ttl": 1200,
|
|
"rules": [{"name" : "Rule 1",
|
|
"request_url" : "/*"}]}]
|
|
},
|
|
"wildcard_caching_no_slash": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "default rule",
|
|
"request_url": "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}
|
|
],
|
|
"caching_list": [{"name": "default",
|
|
"ttl": 1200,
|
|
"rules": [{"name" : "Rule 1",
|
|
"request_url" : "*"}]}]
|
|
},
|
|
"multiple_origin_path_caching": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "default rule",
|
|
"request_url": "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
},
|
|
{
|
|
"origin": "mywebsite2.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "images rules",
|
|
"request_url": "/images/test.jpg"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}
|
|
],
|
|
"caching_list": [{"name": "default",
|
|
"ttl": 1200,
|
|
"rules": [{"name" : "Rule 1",
|
|
"request_url" : "/images/test.jpg"}]}]
|
|
},
|
|
"multiple_origin_path_multiple_caching_types": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "mywebsite1.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "default rule",
|
|
"request_url": "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
},
|
|
{
|
|
"origin": "mywebsite2.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules":[
|
|
{
|
|
"name": "images rules",
|
|
"request_url": "/images/test.jpg"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}
|
|
],
|
|
"caching_list": [{"name": "default",
|
|
"ttl": 1200,
|
|
"rules": [{"name" : "Rule 1",
|
|
"request_url" : "/images/test.jpg"}]},
|
|
{"name": "no-store",
|
|
"ttl": 0,
|
|
"rules": [{"name" : "Rule 2",
|
|
"request_url" : "/news/latestnews.html"}]}]
|
|
},
|
|
"log_delivery_enabled": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name": "default",
|
|
"request_url": "/*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{"name": "test",
|
|
"rules": [
|
|
{
|
|
"name": "only me",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
],
|
|
"log_delivery": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"log_delivery_disabled": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{"name": "test",
|
|
"rules": [
|
|
{
|
|
"name": "only me",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
],
|
|
"log_delivery": {
|
|
"enabled": false
|
|
}
|
|
},
|
|
"hyphen_in_domain_name": {
|
|
"name": "caching_empty",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"origin_hostheadertype": {
|
|
"name": "origin_hostheadertype",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"hostheadertype": "origin",
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"multi_protocol_domains": {
|
|
"name": "multi_protocol_domains",
|
|
"domain_list": [{"domain": "sharedsslwebsite",
|
|
"protocol": "https",
|
|
"certificate": "shared"},
|
|
{"domain": "http.domain.com"},
|
|
{"domain": "san.domain.com",
|
|
"protocol": "https", "certificate": "san"},
|
|
{"domain": "custom.domain.com",
|
|
"protocol": "https", "certificate": "custom"}],
|
|
"origin_list": [{"origin": "myotherorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [{ "name" : "default", "request_url" : "/*"}]
|
|
}],
|
|
"caching_list": [{"name": "default", "ttl": 3600,
|
|
"rules": [{"request_url": "/*", "name": "default"}]
|
|
},
|
|
{"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [{"name" : "index",
|
|
"request_url" : "/index.htm"}]}],
|
|
"restrictions_list": [
|
|
{"name": "test",
|
|
"rules": [{"name": "only me",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url": "/click_me"}]}
|
|
],
|
|
"log_delivery": {"enabled": true}
|
|
},
|
|
"custom_hostheadertype": {
|
|
"name": "custom_hostheadertype",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "customweb.com",
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"domain_hostheadertype": {
|
|
"name": "domain_hostheadertype",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"hostheadertype": "domain",
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"origin_hostheadertype_other_hostheadervalue": {
|
|
"name": "origin_hostheadertype_other_hostheadervalue",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
],
|
|
"hostheadertype": "origin",
|
|
"hostheadervalue": "www.somewebsite.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"multiple_hostheadertypes": {
|
|
"name": "multiple_hostheadertypes",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]},
|
|
{"origin": "www.mywebsite23.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "images",
|
|
"request_url" : "/images/testpic.jpg"
|
|
}],
|
|
"hostheadertype": "origin"
|
|
},
|
|
{"origin": "www.mywebsite34.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "videos",
|
|
"request_url" : "/videos/testvideo.mp4"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.mycustomweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"request_url_no_slashes": {
|
|
"name": "multiple_hostheadertypes",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "img"
|
|
}
|
|
]}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "mycache"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{"name": "test",
|
|
"rules": [
|
|
{
|
|
"name": "only me",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url" : "*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"referrer_restriction_blacklist": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "blacklist",
|
|
"rules": [
|
|
{
|
|
"name": "only me",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only 1234",
|
|
"client_ip": "1.2.3.4",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_blacklist": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "blacklist",
|
|
"rules": [
|
|
{
|
|
"name": "only 1234",
|
|
"client_ip": "1.2.3.4",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv6": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv6",
|
|
"client_ip": "2001:4802:7802:104:be76:4eff:fe20:4b5f",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv6_2": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv6",
|
|
"client_ip": "1200:0000:AB00:1234:0000:2552:7777:1313",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv6_3": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv6",
|
|
"client_ip": "21DA:D3:0:2F3B:2AA:FF:FE28:9C5A",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv4_CIDR_3": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv4CIDR",
|
|
"client_ip": "173.203.4.162/32",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv4_CIDR_4": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv4CIDR",
|
|
"client_ip": "173.203.4.162/24",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv6_CIDR": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv6CIDR",
|
|
"client_ip": "1203:8fe0:fe80:b897:8990:8a7c:99bf:323d/123",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"ip_restriction_ipv6_CIDR_2": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only this ipv6CIDR",
|
|
"client_ip": "1203:8fe0:fe80:b897:8990:8a7c:99bf:323d/100",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"non_root_domains": {
|
|
"name": "non_root_domains",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name": "default",
|
|
"request_url": "/*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"international_non_root_domains": {
|
|
"name": "international_non_root_domains",
|
|
"domain_list": [{"domain": "www.mywebsite.co.in", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.ac.nz", "protocol": "http"}],
|
|
"origin_list": [{"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name": "default",
|
|
"request_url": "/*"
|
|
}],
|
|
"hostheadertype": "custom",
|
|
"hostheadervalue": "www.customweb.com"
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"geo_restriction": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only USA",
|
|
"geography": "USA",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"geo_region_restriction": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only North America",
|
|
"geography": "North America",
|
|
"request_url" : "/*"
|
|
},
|
|
{
|
|
"name": "only South America",
|
|
"geography": "South America",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"geo_australia_newzealand_restriction": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only Australia",
|
|
"geography": "Australia",
|
|
"request_url" : "/*"
|
|
}
|
|
]},
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "Only in New Zealand",
|
|
"geography": "New Zealand",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"geo_australia_newzealand_region_restriction": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only Australia Region",
|
|
"geography": "Australia/NZ",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"geo_restriction_blacklist": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "blacklist",
|
|
"rules": [
|
|
{
|
|
"name": "only not in Mexico",
|
|
"geography": "Mexico",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
},
|
|
"all_types_of_restrictions": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "myorigin.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}]
|
|
}],
|
|
"caching_list": [
|
|
{
|
|
"name": "default",
|
|
"ttl": 3600,
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "home",
|
|
"ttl": 1200,
|
|
"rules": [
|
|
{
|
|
"name" : "index",
|
|
"request_url" : "/index.htm"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restrictions_list": [
|
|
{
|
|
"name": "test",
|
|
"access": "whitelist",
|
|
"rules": [
|
|
{
|
|
"name": "only in US",
|
|
"geography": "USA",
|
|
"request_url" : "/*"
|
|
},{
|
|
"name": "only from my site",
|
|
"referrer": "www.mywebsite.com",
|
|
"request_url" : "/*"
|
|
},{
|
|
"name": "only from 1111",
|
|
"client_ip": "1.1.1.1",
|
|
"request_url" : "/*"
|
|
}
|
|
]}
|
|
]
|
|
}
|
|
}
|