I've got a site for static content, available to everything operates on apache. Being an adjunct to that particular, there's a people site that operates on django. I've not had any problem 'sharing' my .css and making each side equivalent to look at, but things i can't quite appear to grok gets my django site to become django password protected (using the additional caveat that member material, in the login forward, experiences 443).

I'm able to serve all of the pages, I've attempted to make use of mod_rewrite the following:

<Directory /Library/Webserver/Documents>
.
.
.
</Directory>

WSGIScriptAlias /members /usr/local/django/mysite/apache/django.wsgi 


<Directory /members>
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://{HTTP_HOST}%{REQUEST_URI} [L]
.
.
</Directory>

I've attempted all of a 1000 different products within the '/people location above, nothing appears hitting (company, RewriteEngine On is incorporated - I'm able to watch the debug emerge).

Try:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

You ought to be redirecting to same host the request is made against, not always the particular web server host.

I additionally don't think there's a % variable in mod_rewrite. Designed to use %.


EDIT 1

According to comments, ought to be:

<Location /members>
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://{HTTP_HOST}%{REQUEST_URI} [L]
.
.
</Location>

or:

<Directory /usr/local/django/mysite/apache>
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://{HTTP_HOST}%{REQUEST_URI} [L]
.
.
</Directory>

So, Location is perfect for URL and Directory is perfect for file system directory.