441 lines
17 KiB
JSON
441 lines
17 KiB
JSON
{
|
|
"all_fields": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "mywebsite1.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
|
|
}
|
|
},
|
|
"caching_empty": {
|
|
"name": "caching_empty",
|
|
"domain_list": [{"domain": "mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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": "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/*"
|
|
}
|
|
],
|
|
"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": "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"}]}]
|
|
},
|
|
"multiple_origin_path_multiple_caching_types": {
|
|
"name": "my_service_name",
|
|
"domain_list": [{"domain": "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": "mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "mywebsite1.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": "mywebsite.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{
|
|
"origin": "mywebsite1.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": "my-website.com", "protocol": "http"},
|
|
{"domain": "blog.mywebsite.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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": "my-website.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.com",
|
|
"port": 80,
|
|
"ssl": false,
|
|
"hostheadertype": "origin",
|
|
"rules": [
|
|
{
|
|
"name" : "default",
|
|
"request_url" : "/*"
|
|
}
|
|
]
|
|
}],
|
|
"caching_list": []
|
|
},
|
|
"custom_hostheadertype": {
|
|
"name": "custom_hostheadertype",
|
|
"domain_list": [{"domain": "my-website.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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": "my-website.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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": "my-website.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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": "my-website.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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": "my-website.com", "protocol": "http"}],
|
|
"origin_list": [{"origin": "mywebsite1.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" : "restrictions"
|
|
}
|
|
]}
|
|
]
|
|
}
|
|
|
|
}
|