Hi, I have a related SSL question using WSGI and Apache. In my .htaccess file I have something like this:
RewriteEngine On RewriteBase / RewriteRule ^(adminmedia/.*)$ - [L] RewriteRule ^(django\.fcgi/.*)$ - [L] RewriteCond %{REQUEST_FILENAME} !^/?resources/ RewriteRule ^(.*)$ django.fcgi/$1 [L] SetEnvIf X-Url-Scheme https HTTPS=1 And in my django.wsgi file I have something like this: import sys, os sys.path.insert(0,...) os.environ['DJANGO_SETTINGS_MODULE'] = ... from django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") Whenever I request a 'resource' file using https://[host].org/resources/... SSL works fine. This is because WSGI is not involved and the request is handled by Apache directly. However, whenever something is passed through WSGI and rendered by the Django engine, all requests using the HTTPS protocol are automatically forwarded to using the HTTP protocol, and why sites are not served using SSL. Why does this happen? Where do I go wrong? Thanks, 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 at http://groups.google.com/group/django-users?hl=en.