Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a django app that I'm trying to serve over a secure connection. Apache's ssl engine and my certificate are definately working, as my static media is served over a secure connection.

However when a request comes from django, firefox suddenly says the site is not secure.

My vhost looks like this (with simplified paths):

<VirtualHost *:443>
        ServerAdmin webmaster@localhost
        ServerName  my.site.com

        SSLEngine on
        SSLCertificateFile      /path/to/cert.pem
        SSLCertificateKeyFile   /path/to/privatekey.pem

        DocumentRoot /var/www/

        Alias /static/myapp/ /path/to/myapp/static/

        WSGIScriptAlias / /path/to/myapp.wsgi

        ErrorLog /path/to/error.log
        LogLevel warn
        CustomLog /path/to/access.log combined
</VirtualHost>

Any ideas why this might happen/what I can do about it?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Ye gods, made a stupid error there.

Firefox is saying the page is not secure because I'm linking to jquery from a cdn, which of course isn't secure!

If I put jquery in my static files Its all fine.

Feel a bit silly.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.