這是工作正常我上次嘗試它前幾天,但我現在得到一個奇怪的錯誤。我已經XAMP這個文件中的htdocs通話YAM.xml運行:安全錯誤加載本地Xml文件
<?xml version="1.0" encoding="utf-8"?>
<VAST version="2.0">
<Ad id="TEST">
<InLine>
<AdSystem version="3.1">Test</AdSystem>
<AdTitle>JVAM Test</AdTitle>
<Impression></Impression>
<Creatives>
<Creative sequence="1">
<Linear>
<Duration>00:00:15</Duration>
<MediaFiles>
<MediaFile delivery="progressive" width="640" height="480" scalable="1" type="video/mp4">
<![CDATA[http://127.0.0.1/YAM.swf?someVar=123344&vastUrl=http://127.0.0.1/Yashi200_15sec.mp4&vastUrl=http%3A%2F%2Fad4.liverail.com%2F%3FLR_PUBLISHER_ID%3D1331%26LR_SCHEMA%3Dvast2-vpaid&domainName=developers.google.com&fallbackVastUrl=http%3A%2F%2Fad4.liverail.com%2F%3FLR_PUBLISHER_ID%3D1331%26LR_SCHEMA%3Dvast2]]>
</MediaFile>
</MediaFiles>
<VideoClicks>
<VideoClick>
<ClickThrough>
<![CDATA[http://www.cats.com]]>
</ClickThrough>
</VideoClick>
</VideoClicks>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
而且,我的crossdomain.xml看起來是這樣的:
<?xml version="1.0" ?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
我進入的路徑,這個龐大的XML(http://127.0.0.1/YAM.xml )到一個像這裏的瀏覽器VAST驗證:http://zutils.zedo.com/vastvalidator/
出於某種原因,當我嘗試測試廣告它給這個錯誤:
* Security Sandbox Violation * Connection to tmp/
Warning: file_get_contents(http://127.0.0.1/YAM.xml): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in /home/adwww/apache/htdocs/adwww/vastvalidator/createxmlfile.php on line 3
zedoxml144583131.xml halted - not permitted from http://zutils.zedo.com/vastvalidator/ova.jwplayer.5x/dist/swf/5.9.swf Error #2044: Unhandled error:. text=Task Queue failed at step 0: Error2048: Security sandbox violation: http://zutils.zedo.com/vastvalidator/ova.jwplayer.5x/dist/swf/5.9.swf
cannot load data from tmp/
Warning: file_get_contents(http://127.0.0.1/YAM.xml): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in /home/adwww/apache/htdocs/adwww/vastvalidator/createxmlfile.php on line 3
zedoxml144583131.xml.
本地服務器正在運行,如果我將http://127.0.0.1/YAM.xml放入我的地址欄中,我會看到xml文件。
我一直撞在牆上幾天我的頭,所以如果有人看到這個問題,請幫助。謝謝。
但是爲什麼它能夠在幾天前到達我的文件? – Robuttst
因爲你做了不同的事情。它無法達到127.0.0.1您需要一個靜態IP(非本地主機)或DNS來公開IP。 – null