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 [email protected]
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