It turns out that it was because i have multiple domains hosted at
this current location.  The ssl.conf file for Apache was configured
for one of the other domains.  One I configured that file for the
domain I wanted it for, and moved the VirtualHost stuff from
httpd.conf to ssl.conf, it worked.

Steve... probably not the place for this, but since you seem to know
about (and maybe someone else will benefit from this one day)...  So
if I want to get an SSL cert for one of those other domains down the
road, I HAVE to get another web hosting account?  I notice that in the
ssl.conf file, the virtual hosts were defined with IPs:

<VirtualHost 78.78.78.78:443>

... as opposed to httpd.conf where they are defined as:

<VirtualHost *:80>

You can't set up the virtual host in ssl.conf using a wildcard?

keith

On Sep 17, 7:20 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> Note that you can only have one SSL server on an IP address: you can't
> have multiple virtual hosts running SSL because the connection has to be
> established (using the server's identity) before the Host: header can be
> read.
>
> I run the SSL server on my private server as a Virtual Host. This involves
>
>         SSLEngine On
>         SSLCertificateFile /etc/apache2/holdenweb.com.crt
>         SSLCertificateKeyFile /etc/apache2/holdenweb.com.key
>
> regards
>  Steve
>
> lingrlongr wrote:
> > Hmmm....   I played around a bit more.  I don't think this is a Django
> > problem.  I reduced the virtual host entry to:
>
> > <VirtualHost *:443>
> >     ServerName mysite.com
> >     ServerAliaswww.mysite.com
> >     DocumentRoot "/home/django/test"
> > </VirtualHost>
>
> > That fails too.  If I change that port to 80, it works.  Must be
> > something my host has set up somewhere in the config...
>
> > keith
>
> > On Sep 17, 10:34 am, lingrlongr <[EMAIL PROTECTED]> wrote:
>
> >> I can't view my site over ssl.  If I go tohttp://www.mysite.com, the
> >> site works.  If I go tohttps://www.mysite.com, I get a secure
> >> connection, but my django app isn't get served, but rather /var/www/
> >> index.html is.  Here's my apache config for mysite:
>
> >> <VirtualHost *:443>
> >>     ServerName mysite.com
> >>     ServerAliaswww.mysite.com
> >>     <Location "/">
> >>         SetHandler python-program
> >>         PythonHandler django.core.handlers.modpython
> >>         SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> >>         PythonDebug Off
> >>         PythonPath "['/home/django/django-projects/', '/home/django/
> >> django-projects/mysite/'] + sys.path"
> >>         PythonInterpreter ssl_mysite
> >>     </Location>
> >> </VirtualHost>
>
> >> <VirtualHost *:80>
> >>     ServerName mysite.com
> >>     ServerAliaswww.mysite.com
> >>     <Location "/">
> >>         SetHandler python-program
> >>         PythonHandler django.core.handlers.modpython
> >>         SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> >>         PythonDebug Off
> >>         PythonPath "['/home/django/django-projects/', '/home/django/
> >> django-projects/mysite/'] + sys.path"
> >>         PythonInterpreter mysite
> >>     </Location>
> >> </VirtualHost>
>
> >> keith
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to