Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 22, 2010 16:24:33

Jakob H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Succeeding with SSL


Hi,

I have a Django site hosted on Bluehost, and I'm trying to get SSL to
work, but have some problems. I've got a dedicated IP with SSL
certificates all ready to go.

1. Whenever I enter a https://... I'm automatically re-directed to a
http:// address. I assumed that this cannot be Django related, and
only Apache related. Bluehost claims this is a Django related issue,
but I disagree. In general, what makes more sense? I also believe that
I do not have any Apache re-directs that directs https:// to http://.
Has anyone seen similar issues? I can provide more info if needed.

2. I have a sub-domain to serve static fileshttp://static..org.
I do this to avoid having static files served by Django through the
WSGI interface. As I understand, whenever I use SSL I must serve
static files via SSL as well. Will this cause problems if my SSL
certificate is only for my domain (www..org) and not for
static..org? What is the solution here? Do I either get two
certificates (one for 'www' and one for 'static'), or do I serve
static files via Apache in some other fashion (in that case, how?)?

Any help is grateful,
Jakob

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 25, 2010 19:23:43

Erik C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Succeeding with SSL


Den 22/12/2010 kl. 17.17 skrev Jakob H:

> Hi,
>
> I have a Django site hosted on Bluehost, and I'm trying to get SSL to
> work, but have some problems. I've got a dedicated IP with SSL
> certificates all ready to go.
>
> 1. Whenever I enter a https://... I'm automatically re-directed to a
> http:// address. I assumed that this cannot be Django related, and
> only Apache related. Bluehost claims this is a Django related issue,
> but I disagree. In general, what makes more sense? I also believe that
> I do not have any Apache re-directs that directs https:// to http://.
> Has anyone seen similar issues? I can provide more info if needed.

This is simple to test. Try serving a simple HTML page with Apache alone
(bypass Django) and see if the redirection still occurs. The redirection can
happen both places.

> 2. I have a sub-domain to serve static fileshttp://static..org.
> I do this to avoid having static files served by Django through the
> WSGI interface. As I understand, whenever I use SSL I must serve
> static files via SSL as well. Will this cause problems if my SSL
> certificate is only for my domain (www..org) and not for
> static..org? What is the solution here? Do I either get two
> certificates (one for 'www' and one for 'static'), or do I serve
> static files via Apache in some other fashion (in that case, how?)?

It is not mandatory to serve all parts of the page over SSL, but most browsers
will produce warnings if you don't. What you need is either a certificate for
every subdomain, or a wildcard certificate that works for all subdomains
(*.example.com).

Eriksmime.p7sDescription:S/MIME cryptographic signature

Attachments:
attachment smime.p7s (1.9 KB)

Offline

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support