Mobile app version of vmapp.org
Login or Join
Mendez628

: Protocol relative URLs from other domains If I am configuring https://foo.mysite.com where I have an SSL cert with CN=foo.mysite.com, but index.html has includes/images/etc loading from http://othersite.com/cat.png

@Mendez628

Posted in: #Apache #Https #HttpServer

If I am configuring foo.mysite.com where I have an SSL cert with CN=foo.mysite.com, but index.html has includes/images/etc loading from othersite.com/cat.png and somethingelse.com/script.js, will using protocol agnostic urls like //somethingelse/script.js require that a cert exist for othersite.com and somethingelse.com or will Apache use my site's cert without causing any warnings/errors in the browser? Apache 2.2.3, mod_ssl

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Mendez628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelton105

All those 3 domains are completely independent from each other (even if they are different virtual hosts in the same apache server).
A protocol-relative URL just means "use the same protocol as the current page's".
So, yes, you need to configure https certificates for all those domains. Otherwise the browser may produce a warning saying that some resources in the page were loaded through an unsecure conection.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme