Created
April 3, 2012 17:34
-
-
Save RichardBronosky/2293939 to your computer and use it in GitHub Desktop.
Akamai config for TV LSN, before addition of targetUrl magic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configs xsi:noNamespaceSchemaLocation="../schemas/metadata.xsd" xmlns:cache="uri:akamai.com/metadata/cache/5.0" xmlns:edgeservices="uri:akamai.com/metadata/edgeservices/5.0" xmlns:xalan="http://xml.apache.org/xslt" xmlns:config="uri:akamai.com/metadata/config/5.0" xmlns:network="uri:akamai.com/metadata/network/5.0" xmlns:auth="uri:akamai.com/metadata/auth/5.0" xmlns:match="uri:akamai.com/metadata/match/5.0" xmlns:forward="uri:akamai.com/metadata/forward/5.0" xmlns:comment="uri:akamai.com/metadata/comment/5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akamai="uri:akamai.com/metadata/akamai/5.0" xmlns:security="uri:akamai.com/metadata/security/5.0" xmlns:reporting="uri:akamai.com/metadata/reporting/5.0" xmlns:edgecomputing="uri:akamai.com/metadata/edgecomputing/5.0" xmlns:assign="uri:akamai.com/metadata/assign/5.0"> | |
<akamai:edge-config version="5.0"> | |
<comment:advanced_defaults.begin/> | |
<comment:advanced_defaults.end/> | |
<comment:quickstart_section.begin/> | |
<!--Generated from QS data - QS version 28--> | |
<comment:hoits value="m.foxreno.com m.kfoxtv.com m.kirotv.com m.ktvu.com m.wftv.com m.whiotv.com m.wjactv.com m.wpxi.com m.wsbtv.com m.wsoctv.com m.wtov9.com www.foxreno.com www.kfoxtv.com www.kirotv.com www.ktvu.com www.wftv.com www.whiotv.com www.wjactv.com www.wpxi.com www.wsbtv.com www.wsoctv.com www.wtov9.com"/> | |
<edgeservices:lma.origin-edge>on</edgeservices:lma.origin-edge> | |
<forward:origin-server.host>%(AK_HOSTHEADER)</forward:origin-server.host> | |
<forward:origin-server.dns-name.status>on</forward:origin-server.dns-name.status> | |
<forward:origin-server.dns-name.value>norigin.www.cmgdigital.com</forward:origin-server.dns-name.value> | |
<match:arl.type value="cname"> | |
<forward:modify-host-header.value>%(AK_HOSTHEADER)</forward:modify-host-header.value> | |
<forward:modify-host-header.status>on</forward:modify-host-header.status> | |
</match:arl.type> | |
<reporting:cpcode>105285</reporting:cpcode> | |
<!--testing in cacheHonorCC template--> | |
<cache:honor-cc>on</cache:honor-cc> | |
<cache:honor-expires>on</cache:honor-expires> | |
<cache:header-update.allow>on</cache:header-update.allow> | |
<cache:max-age>2m</cache:max-age> | |
<!--cacheable content - Tiered Distribution Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>TD</value> | |
</assign:variable> | |
<edgeservices:modify-outgoing-response.http-version>1.1</edgeservices:modify-outgoing-response.http-version> | |
<edgeservices:modify-outgoing-request.accept-chunking>on</edgeservices:modify-outgoing-request.accept-chunking> | |
<reporting:lds.user-agent>on</reporting:lds.user-agent> | |
<security:allow-post>on</security:allow-post> | |
<match:response.header name="Content-Type" value="text/html* application/x-javascript* text/css*" value-case="off" value-wildcard="on"> | |
<edgeservices:lma.edge-browser>on</edgeservices:lma.edge-browser> | |
<edgeservices:lma.incoming>on</edgeservices:lma.incoming> | |
</match:response.header> | |
<match:uri.wildcard value="/ur/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/admin/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/profile/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/accounts/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/newsletter/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/social/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<!--Assign parent settings based on parent_setting variable. SR4F is applied via baseline.--> | |
<match:variable name="parent_setting" value="TD"> | |
<!--Tiered Distribution config (caching)--> | |
<forward:cache-parent> | |
<status>on</status> | |
<selection-method>serial-prepend</selection-method> | |
<policy>tiered-distribution</policy> | |
<map>ch2.akamai.net</map> | |
</forward:cache-parent> | |
<cache:no-store>off</cache:no-store> | |
</match:variable> | |
<match:time start="3"> | |
<match:request.type result="true" value="CLIENT_REQ"> | |
<!-- turn off LMA for older browsers --> | |
<match:request.header name="User-Agent" value="*MSIE\ 5*Mac* *MSIE\ 4*" value-case="off" value-wildcard="on"> | |
<edgeservices:lma.force-uncompress>on</edgeservices:lma.force-uncompress> | |
</match:request.header> | |
<match:request.header name="User-Agent" value="*Mozilla/4*" value-case="off" value-wildcard="on"> | |
<match:request.header name="User-Agent" result="false" value="*(compatible;*" value-case="off" value-wildcard="on"> | |
<edgeservices:lma.force-uncompress>on</edgeservices:lma.force-uncompress> | |
</match:request.header> | |
</match:request.header> | |
</match:request.type> | |
</match:time> | |
<comment:quickstart_section.end/> | |
<!-- Time match created by Configuration Manager - Separates override advanced metadata --> | |
<match:time start="2"> | |
<comment:advanced_override.begin> | |
override advanced metadata begins here | |
</comment:advanced_override.begin> | |
<!-- Mobile Detect and Redirect Begins | |
*Apply only for www sites | |
*Do not redirect if nmredir cookie has value true | |
*Do not redirect if nmredir query is true | |
--> | |
<!-- Matching for www sites only --> | |
<match:hoit host="www.*"> | |
<!-- | |
This variable can be set by custom metadata below to determine whether or not to even | |
attempt mobile detection and redirection logic. Any value other than "on" means disabled. | |
since the whole point of this metadata is for mobile detection, the default is "on" | |
--> | |
<!-- Begin customer specific mobile detection preferences URLs --> | |
<!-- | |
Assuming mobile detect is on by default | |
--> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>on</value> | |
</assign:variable> | |
<!-- Exclude SureRoute Test Objects from detect and redirect --> | |
<match:request.type result="true" value="SR_TESTOBJECT"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.type> | |
<!-- Exclude pre-fetch requests from detect and redirect --> | |
<match:request.header name="X-Akamai-Prefetched-Object" result="true"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.header> | |
<!-- Exlcude non-client requests from detect and redirect --> | |
<match:request.type result="false" value="CLIENT_REQ"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.type> | |
<!-- If a nmredir cookie is true, no check is needed --> | |
<match:request.cookie name="nmredir" value="true"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.cookie> | |
<!-- If a nmredir query is true, no check is needed --> | |
<match:uri.query-string name="nmredir" value="true"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:uri.query-string> | |
<!-- do mobile detection unless customer rules above disabled it --> | |
<match:variable name="DO_MOBILE_DETECT" result="true" value="on"> | |
<!-- Extract the user-agent from the User-Agent header --> | |
<assign:extract-value> | |
<variable-name>VAR_USER_AGENT</variable-name> | |
<location>Client_Request_Header</location> | |
<location-id>User-Agent</location-id> | |
</assign:extract-value> | |
<match:variable name="VAR_USER_AGENT" | |
value="*iphone* *ipod* *android* *blackberry* *symbian* *nokia* *sonyericsson* *sie-* *opera\ mini* *portalmmm/* *windows\ ce* *windows\ phone* *iemobile* *up.browser* *up.link* *802sh* *alcatel-* *amoi-* *attws* *au-mic* *audiovox* *avantgo* *benq* *cdm-* *ericsson* *ericy-* *gs308* *hitachi-p300* *htc-* *i-2100* *kwc-* *lg-* *lg/u* *lge-* *lge/u* *lowestcd* *mo0* *mobilephone* *mot-* *motorola* *n5-10* *nec-* *opwv* *owg1* *palm* *panasonic* *pg-c* *philips* *pls* *pm-* *pn-215* *profile/midp* *qci-* *rl-* *rpt-httpclient* *sagem* *samsung* *sanyo* *sch-a* *sch-n* *scp-* *sec-* *sendox* *sgh* *sharp* *smartphone* *spha* *v60t* *vi600* *vk530* *vm4050* *vodafone* *wapper* *wildseed* *winwap-pro*" | |
value-case="off" value-wildcard="on"> | |
<!-- issue the redirect to the selected domain --> | |
<edgeservices:redirect.generate> | |
<evict-cached-object>off</evict-cached-object> | |
<rule> | |
<status>on</status> | |
<destination>%(AK_SCHEME)://wap.%(AK_DOMAIN)/site.htm?targetURL=%(AK_SCHEME)://www.%(AK_DOMAIN)/</destination> | |
<select-prefix>/</select-prefix> | |
<response-code>302</response-code> | |
</rule> | |
</edgeservices:redirect.generate> | |
</match:variable> | |
</match:variable> | |
</match:hoit> | |
<comment:advanced_override.end> | |
end of override advanced metadata | |
</comment:advanced_override.end> | |
</match:time> | |
</akamai:edge-config> | |
</configs> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configs xsi:noNamespaceSchemaLocation="../schemas/metadata.xsd" xmlns:cache="uri:akamai.com/metadata/cache/5.0" xmlns:edgeservices="uri:akamai.com/metadata/edgeservices/5.0" xmlns:xalan="http://xml.apache.org/xslt" xmlns:config="uri:akamai.com/metadata/config/5.0" xmlns:network="uri:akamai.com/metadata/network/5.0" xmlns:auth="uri:akamai.com/metadata/auth/5.0" xmlns:match="uri:akamai.com/metadata/match/5.0" xmlns:forward="uri:akamai.com/metadata/forward/5.0" xmlns:comment="uri:akamai.com/metadata/comment/5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:akamai="uri:akamai.com/metadata/akamai/5.0" xmlns:security="uri:akamai.com/metadata/security/5.0" xmlns:reporting="uri:akamai.com/metadata/reporting/5.0" xmlns:edgecomputing="uri:akamai.com/metadata/edgecomputing/5.0" xmlns:assign="uri:akamai.com/metadata/assign/5.0"> | |
<akamai:edge-config version="5.0"> | |
<comment:advanced_defaults.begin /> | |
<comment:advanced_defaults.end /> | |
<comment:quickstart_section.begin /> | |
<!--Generated from QS data - QS version 27--> | |
<comment:hoits value="m.foxreno.com m.kfoxtv.com m.kirotv.com m.ktvu.com m.wftv.com m.whiotv.com m.wjactv.com m.wpxi.com m.wsbtv.com m.wsoctv.com m.wtov9.com www.foxreno.com www.kfoxtv.com www.kirotv.com www.ktvu.com www.wftv.com www.whiotv.com www.wjactv.com www.wpxi.com www.wsbtv.com www.wsoctv.com www.wtov9.com" /> | |
<edgeservices:lma.origin-edge>on</edgeservices:lma.origin-edge> | |
<forward:origin-server.host>%(AK_HOSTHEADER)</forward:origin-server.host> | |
<forward:origin-server.dns-name.status>on</forward:origin-server.dns-name.status> | |
<forward:origin-server.dns-name.value>norigin.www.cmgdigital.com</forward:origin-server.dns-name.value> | |
<match:arl.type value="cname"> | |
<forward:modify-host-header.value>%(AK_HOSTHEADER)</forward:modify-host-header.value> | |
<forward:modify-host-header.status>on</forward:modify-host-header.status> | |
</match:arl.type> | |
<reporting:cpcode>105285</reporting:cpcode> | |
<!--testing in cacheHonorCC template--> | |
<cache:honor-cc>on</cache:honor-cc> | |
<cache:honor-expires>on</cache:honor-expires> | |
<cache:header-update.allow>on</cache:header-update.allow> | |
<cache:max-age>2m</cache:max-age> | |
<!--cacheable content - Tiered Distribution Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>TD</value> | |
</assign:variable> | |
<edgeservices:modify-outgoing-response.http-version>1.1</edgeservices:modify-outgoing-response.http-version> | |
<edgeservices:modify-outgoing-request.accept-chunking>on</edgeservices:modify-outgoing-request.accept-chunking> | |
<reporting:lds.user-agent>on</reporting:lds.user-agent> | |
<security:allow-post>on</security:allow-post> | |
<match:response.header name="Content-Type" value="text/html* application/x-javascript* text/css*" value-case="off" value-wildcard="on"> | |
<edgeservices:lma.edge-browser>on</edgeservices:lma.edge-browser> | |
<edgeservices:lma.incoming>on</edgeservices:lma.incoming> | |
</match:response.header> | |
<match:uri.wildcard value="/ur/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/admin/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/profile/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/accounts/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/newsletter/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<match:uri.wildcard value="/social/*"> | |
<cache:no-store>on</cache:no-store> | |
<!--no-store content - Sureroute for Failover Enabled--> | |
<assign:variable> | |
<name>parent_setting</name> | |
<value>SR4F</value> | |
</assign:variable> | |
</match:uri.wildcard> | |
<!--Assign parent settings based on parent_setting variable. SR4F is applied via baseline.--> | |
<match:variable name="parent_setting" value="TD"> | |
<!--Tiered Distribution config (caching)--> | |
<forward:cache-parent> | |
<status>on</status> | |
<selection-method>serial-prepend</selection-method> | |
<policy>tiered-distribution</policy> | |
<map>ch2.akamai.net</map> | |
</forward:cache-parent> | |
<cache:no-store>off</cache:no-store> | |
</match:variable> | |
<match:time start="3"> | |
<match:request.type result="true" value="CLIENT_REQ"> | |
<!-- turn off LMA for older browsers --> | |
<match:request.header name="User-Agent" value="*MSIE\ 5*Mac* *MSIE\ 4*" value-case="off" value-wildcard="on"> | |
<edgeservices:lma.force-uncompress>on</edgeservices:lma.force-uncompress> | |
</match:request.header> | |
<match:request.header name="User-Agent" value="*Mozilla/4*" value-case="off" value-wildcard="on"> | |
<match:request.header name="User-Agent" result="false" value="*(compatible;*" value-case="off" value-wildcard="on"> | |
<edgeservices:lma.force-uncompress>on</edgeservices:lma.force-uncompress> | |
</match:request.header> | |
</match:request.header> | |
</match:request.type> | |
</match:time> | |
<comment:quickstart_section.end /> | |
<!-- Time match created by Configuration Manager - Separates override advanced metadata --> | |
<match:time start="2"> | |
<comment:advanced_override.begin> | |
override advanced metadata begins here | |
</comment:advanced_override.begin> | |
<!-- Mobile Detect and Redirect Begins | |
*Apply only for www sites | |
*Do not redirect if nmredir cookie has value true | |
*Do not redirect if nmredir query is true | |
--> | |
<!-- Matching for www sites only --> | |
<match:hoit host="www.*"> | |
<!-- | |
This variable can be set by custom metadata below to determine whether or not to even | |
attempt mobile detection and redirection logic. Any value other than "on" means disabled. | |
since the whole point of this metadata is for mobile detection, the default is "on" | |
--> | |
<!-- Begin customer specific mobile detection preferences URLs --> | |
<!-- | |
Assuming mobile detect is on by default | |
--> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>on</value> | |
</assign:variable> | |
<!-- Exclude SureRoute Test Objects from detect and redirect --> | |
<match:request.type result="true" value="SR_TESTOBJECT"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.type> | |
<!-- Exclude pre-fetch requests from detect and redirect --> | |
<match:request.header name="X-Akamai-Prefetched-Object" result="true"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.header> | |
<!-- Exlcude non-client requests from detect and redirect --> | |
<match:request.type result="false" value="CLIENT_REQ"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.type> | |
<!-- If a nmredir cookie is true, no check is needed --> | |
<match:request.cookie name="nmredir" value="true"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:request.cookie> | |
<!-- If a nmredir query is true, no check is needed --> | |
<match:uri.query-string name="nmredir" value="true"> | |
<assign:variable> | |
<name>DO_MOBILE_DETECT</name> | |
<value>off</value> | |
</assign:variable> | |
</match:uri.query-string> | |
<!-- do mobile detection unless customer rules above disabled it --> | |
<match:variable name="DO_MOBILE_DETECT" result="true" value="on"> | |
<!-- Extract the user-agent from the User-Agent header --> | |
<assign:extract-value> | |
<variable-name>VAR_USER_AGENT</variable-name> | |
<location>Client_Request_Header</location> | |
<location-id>User-Agent</location-id> | |
</assign:extract-value> | |
<match:variable name="VAR_USER_AGENT" value="*iphone* *ipod* *android* *blackberry* *symbian* *nokia* *sonyericsson* *sie-* *opera\ mini* *portalmmm/* *windows\ ce* *windows\ phone* *iemobile* *up.browser* *up.link* *802sh* *alcatel-* *amoi-* *attws* *au-mic* *audiovox* *avantgo* *benq* *cdm-* *ericsson* *ericy-* *gs308* *hitachi-p300* *htc-* *i-2100* *kwc-* *lg-* *lg/u* *lge-* *lge/u* *lowestcd* *mo0* *mobilephone* *mot-* *motorola* *n5-10* *nec-* *opwv* *owg1* *palm* *panasonic* *pg-c* *philips* *pls* *pm-* *pn-215* *profile/midp* *qci-* *rl-* *rpt-httpclient* *sagem* *samsung* *sanyo* *sch-a* *sch-n* *scp-* *sec-* *sendox* *sgh* *sharp* *smartphone* *spha* *v60t* *vi600* *vk530* *vm4050* *vodafone* *wapper* *wildseed* *winwap-pro*" value-case="off" value-wildcard="on"> | |
<!-- issue the redirect to the selected domain --> | |
<edgeservices:redirect.generate> | |
<evict-cached-object>off</evict-cached-object> | |
<rule> | |
<status>on</status> | |
<destination>%(AK_SCHEME)://wap.%(AK_DOMAIN)/</destination> | |
<select-prefix>/</select-prefix> | |
<response-code>302</response-code> | |
</rule> | |
</edgeservices:redirect.generate> | |
</match:variable> | |
</match:variable> | |
</match:hoit> | |
<comment:advanced_override.end> | |
end of override advanced metadata | |
</comment:advanced_override.end> | |
</match:time> | |
</akamai:edge-config> | |
</configs> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment