Why do my HTML banners not serve on my SSL (https://) website?
OpenX will not serve HTML ads on SSL sites because it cannot be guaranteed that the HTML code generated will obey SSL restrictions, which could generate "Mixed content" browser warnings on SSL pages.
However there are situations where you may know that an HTML creative is SSL safe and want to override this restriction to allow this creative to be served on SSL pages.
- Set the "Alter HTML to enable tracking of Clicks" option to enabled and set the type to "Rich Media - OpenX".
- The HTML creative cannot contain references to media (images, frames, JavaScript, etc) from non-SSL sites.
For example, an HTML banner containing "<img src='http://example.com/image.gif' />" would not be allowed on an SSL page, this would have to request the media from an SSL source e.g. "<img src='https://example.com/image.gif' />"
If these two conditions are satisfied, then OpenX will allow this creative to be served on an SSL site.
Advanced note:
The "contains non-SSL media" check is a regex match using the following regular expression: /src\s?=\s?['\"]http:/
If your creative uses JavaScript and serves different media based on the protocol, there may be valid src=http: strings in the code, in these cases you can "split the string" so that the match doesn't detect these.
For example:
<script type='text/javascript'>
if (location.protocol=='https:') {
document.write("<img src='https://example.com/image.gif' />");
} else {
document.write("<img src='ht'+'tp://example.com/image.gif' />");
}
</script>

RSS
Twitter
Facebook
FriendFeed