how to put an image on an SSL server

Posted on 2005-04-16
Last Modified: 2013-11-29
How do I put an image on an SSL server?

I am building a paypal donation page but since the header image isn't on an SSL server I keep getting the security pop-up window...

A bried explanation of what SSL server is and how I can but by image on it woudl be appreciated.
Question by:galneweinhaw
    LVL 33

    Accepted Solution

    Essentially, SSL (secure socket layer) is used to encrypt data sent between a server and a browser.  Therefore, if any data is intercepted it will be encrypted and of no use to the interceptor.  To use SSL, a digital certificate is installed on the server for use with a specific website.  Digital certificates are signed by a Certificate Authority (ie. Verisign or Thawte) which acts to ensure the validity of the certificate.

    With SSL, you can protect an entire website or just specific parts of it, ie. directories or even pages.  You access unprotected pages using and protected pages using  However, if you you visit a protected page that uses elements (ie. a header) that are not in a protected directory, you will see the error message that you mention, which is intended to alert the user that some element of the page is not encrypted/secure.

    To correct this, you have to make sure that the directory where the header file is located (and any other page elements, like graphics) is protected by SSL.

    Author Comment

    Thank you for the explanation, could you help me get started to:

    "make sure that the directory where the header file is located (and any other page elements, like graphics) is protected by SSL"?

    Thanks alot
    LVL 33

    Expert Comment

    Is this your own server or is it hosted with a hosting company?  Is it Windows/IIS or Linux/Apache?
    LVL 5

    Assisted Solution


    If your OS is Windows then the source of the image should be a relative path not prefixed by http://www.domainname/images/....

    The reason for getting the security popup window might be bacause the image is being called via a non secure connection i.e. (http:), by providing a relative path i.e (/images/imagename.gif) the data will be served in the same port as that of the page.


    There will be a folder called https and you need to have the same structure and data as of the http site.

    Hope this helps.

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
    In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now