0
Answered

serve HTTPS from blox app directory

Aidian 7 years ago in BLOX CMS updated by Christine Masters 7 years ago 1

Anyone know if this is possible?  Our site is now HTTPS, but assets in the app directory aren't, so they won't display.

Answer

Answer
Answered

The /app directory should allow http or https as long as you are calling that from the original code. You would need to ensure that the reference in the code is actually pointing to https however. Protocol-less will also work, but these days we recommend just doing straight secure always, regardless of whether or not your site is secure.


In other words, if your website is asking for an image in the /app directory, it needs to say:


<img src="https://example.com/app/images/image.jpg">

instead of:


<img src="http://example.com/app/images/image.jpg">

If you're doing this already and it isn't working - please let me a link (you can create a job ticket also) so we can look.

GOOD, I'M SATISFIED
Satisfaction mark by Aidian 7 years ago
Answer
Answered

The /app directory should allow http or https as long as you are calling that from the original code. You would need to ensure that the reference in the code is actually pointing to https however. Protocol-less will also work, but these days we recommend just doing straight secure always, regardless of whether or not your site is secure.


In other words, if your website is asking for an image in the /app directory, it needs to say:


<img src="https://example.com/app/images/image.jpg">

instead of:


<img src="http://example.com/app/images/image.jpg">

If you're doing this already and it isn't working - please let me a link (you can create a job ticket also) so we can look.