<div dir="ltr">Hi, please use $scheme<div><span class="gmail-hljs-attribute" style="color:navy;font-family:menlo,monaco,"courier new",monospace;font-size:12px;white-space:pre-wrap">proxy_set_header</span><span style="color:rgb(51,51,51);font-family:menlo,monaco,"courier new",monospace;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> X-Forwarded-Proto </span><span class="gmail-hljs-variable" style="color:teal;font-family:menlo,monaco,"courier new",monospace;font-size:12px;white-space:pre-wrap">$scheme</span><span style="color:rgb(51,51,51);font-family:menlo,monaco,"courier new",monospace;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">;</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-03 16:58 GMT+03:00 Geo P.C. <span dir="ltr"><<a href="mailto:pcgeopc@gmail.com" target="_blank">pcgeopc@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<span class="m_-2134923079286279739gmail-vote-count-post"></span>
<div>
<div class="m_-2134923079286279739gmail-post-text">
<p>In our site we are loading a calnedar api function that works on http
(<a href="http://cdn.instantcal.com" target="_blank">cdn.instantcal.com</a>) . While loading this site on our wordpress site
with https its not working and getting an error: </p>
<blockquote>
<p>"Mixed Content: The page at
'<a href="https://www.geo.com/wp-admin/post.php?post=362&action=edit" rel="nofollow" target="_blank">https://www.geo.com/wp-admin/<wbr>post.php?post=362&action=edit</a>' was
loaded over HTTPS, but requested an insecure resource
'<a href="http://cdn.instantcal.com/cvj.html" rel="nofollow" target="_blank">http://cdn.instantcal.com/<wbr>cvj.html</a>'. This request has been blocked;
the content must be served over HTTPS."</p>
</blockquote>
<p>In order to fix the Mixed Iframe Issue in our Nginx Proxy server we
configured a new site on https <a href="http://calendar.geopc.com" target="_blank">calendar.geopc.com</a> and that proxies to
<a href="http://cdn.instantcal.com" target="_blank">cdn.instantcal.com</a>.</p>
<pre><code>server {
listen 443;
server_name <a href="http://calendar.geopc.com" target="_blank">calendar.geopc.com</a>;
location / {
proxy_pass <a href="http://cdn.instantcal.com" target="_blank">http://cdn.instantcal.com</a>;
proxy_set_header Host <a href="http://cdn.instantcal.com" target="_blank">cdn.instantcal.com</a>;
proxy_set_header X-Real-IP $remote_addr;
}
}
</code></pre>
<p>Then In Iframe we given the url as </p>
<blockquote>
</blockquote>
<p>But in Iframe we are getting the same error </p>
<blockquote>
<p>Mixed Content: The page at
'<a href="https://www.geo.com/wp-admin/post.php?post=362&action=edit" rel="nofollow" target="_blank">https://www.geo.com/wp-admin/<wbr>post.php?post=362&action=edit</a>' was
loaded over HTTPS, but requested an insecure resource
'<a href="http://calendar.geopc.com/cvj.html?idcloseable=0&gnavigable=1&gperiod=da" rel="nofollow" target="_blank">http://calendar.geopc.com/<wbr>cvj.html?idcloseable=0&<wbr>gnavigable=1&gperiod=da</a>'.
This request has been blocked; the content must be served over HTTPS.</p>
</blockquote>
<p>When we directly access the url <a href="http://calendar.geopc.com" target="_blank">calendar.geopc.com</a> on https its
working fine on https. But please let me know whats the issue? Is it on
Iframe or on Nginx. Can anyone please help us?</p>
</div></div></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div>